Changeset 63175 in vbox for trunk/src/VBox
- Timestamp:
- Aug 8, 2016 2:53:39 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109793
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r63173 r63175 166 166 int UIDesktopWidgetWatchdog::screenNumber(const QWidget *pWidget) const 167 167 { 168 /* Redirect call to QDesktopWidget: */168 /* Redirect call to desktop-widget: */ 169 169 return QApplication::desktop()->screenNumber(pWidget); 170 170 } … … 172 172 int UIDesktopWidgetWatchdog::screenNumber(const QPoint &point) const 173 173 { 174 /* Redirect call to QDesktopWidget: */174 /* Redirect call to desktop-widget: */ 175 175 return QApplication::desktop()->screenNumber(point); 176 176 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r63162 r63175 24 24 # include <QToolTip> 25 25 # include <QTranslator> 26 # include <QDesktopWidget>27 26 # if QT_VERSION >= 0x050000 28 27 # include <QStandardPaths> … … 2600 2599 { 2601 2600 w = w->window(); 2602 deskGeo = QApplication::desktop()->availableGeometry (w);2601 deskGeo = gpDesktop->availableGeometry (w); 2603 2602 parentGeo = w->frameGeometry(); 2604 2603 /* On X11/Gnome, geo/frameGeo.x() and y() are always 0 for top level … … 2611 2610 else 2612 2611 { 2613 deskGeo = QApplication::desktop()->availableGeometry();2612 deskGeo = gpDesktop->availableGeometry(); 2614 2613 parentGeo = deskGeo; 2615 2614 } … … 2879 2878 quint64 VBoxGlobal::requiredVideoMemory(const QString &strGuestOSTypeId, int cMonitors /* = 1 */) 2880 2879 { 2881 QDesktopWidget *pDW = QApplication::desktop();2882 2880 /* We create a list of the size of all available host monitors. This list 2883 2881 * is sorted by value and by starting with the biggest one, we calculate … … 2886 2884 * open the guest windows, this is the best assumption we can do, cause it 2887 2885 * is the worst case. */ 2888 const int cHostScreens = pDW->screenCount();2886 const int cHostScreens = gpDesktop->screenCount(); 2889 2887 QVector<int> screenSize(qMax(cMonitors, cHostScreens), 0); 2890 2888 for (int i = 0; i < cHostScreens; ++i) 2891 2889 { 2892 QRect r = pDW->screenGeometry(i);2890 QRect r = gpDesktop->screenGeometry(i); 2893 2891 screenSize[i] = r.width() * r.height(); 2894 2892 } -
trunk/src/VBox/Frontends/VirtualBox/src/precomp.h
r62679 r63175 54 54 #include <QDateTime> 55 55 #include <QDesktopServices> 56 #include <QDesktopWidget> 56 //#include <QDesktopWidget> - only used once 57 57 #include <QDialog> 58 58 #include <QDialogButtonBox> -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r63054 r63175 21 21 22 22 /* Qt includes: */ 23 # include <QDesktopWidget>24 23 # include <QMainWindow> 25 24 # include <QPainter> … … 804 803 { 805 804 /* Desktop resolution change (e.g. monitor hotplug): */ 806 connect( QApplication::desktop(), SIGNAL(resized(int)), this,805 connect(gpDesktop, SIGNAL(sigHostScreenResized(int)), this, 807 806 SLOT(sltDesktopResized())); 808 807 /* Scale-factor change: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r63054 r63175 21 21 22 22 /* Qt includes: */ 23 # include <QDesktopWidget>24 23 # include <QMouseEvent> 25 24 # include <QTimer> … … 882 881 m_lastMousePos = globalPos; 883 882 #else /* VBOX_WS_WIN */ 884 int iWe = QApplication::desktop()->width() - 1;885 int iHe = QApplication::desktop()->height() - 1;883 int iWe = gpDesktop->overallDesktopWidth() - 1; 884 int iHe = gpDesktop->overallDesktopHeight() - 1; 886 885 QPoint p = globalPos; 887 886 if (globalPos.x() == 0) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r63054 r63175 23 23 # include <QApplication> 24 24 # include <QBitmap> 25 # include <QDesktopWidget>26 25 # include <QWidget> 27 26 # ifdef VBOX_WS_MAC … … 1126 1125 #else /* !VBOX_WS_MAC */ 1127 1126 /* Install Qt display reconfiguration callbacks: */ 1128 connect( QApplication::desktop(), SIGNAL(screenCountChanged(int)),1127 connect(gpDesktop, SIGNAL(sigHostScreenCountChanged(int)), 1129 1128 this, SLOT(sltHandleHostScreenCountChange())); 1130 connect( QApplication::desktop(), SIGNAL(resized(int)),1129 connect(gpDesktop, SIGNAL(sigHostScreenResized(int)), 1131 1130 this, SLOT(sltHandleHostScreenGeometryChange())); 1132 connect( QApplication::desktop(), SIGNAL(workAreaResized(int)),1131 connect(gpDesktop, SIGNAL(sigHostScreenWorkAreaResized(int)), 1133 1132 this, SLOT(sltHandleHostScreenAvailableAreaChange())); 1134 1133 #endif /* !VBOX_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r63054 r63175 29 29 # if QT_VERSION >= 0x050000 30 30 # include <QStandardPaths> 31 # ifdef VBOX_WS_X1132 # include <QDesktopWidget>33 # endif /* VBOX_WS_X11 */34 31 # else /* QT_VERSION < 0x050000 */ 35 32 # include <QDesktopServices> … … 1726 1723 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1727 1724 /* Desktop event handlers: */ 1728 connect( QApplication::desktop(), SIGNAL(workAreaResized(int)), this, SLOT(sltHandleHostScreenAvailableAreaChange()));1725 connect(gpDesktop, SIGNAL(sigHostScreenWorkAreaResized(int)), this, SLOT(sltHandleHostScreenAvailableAreaChange())); 1729 1726 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 1730 1727 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r63054 r63175 30 30 # include <QStateMachine> 31 31 # include <QPainter> 32 # include <QDesktopWidget>33 32 # ifdef VBOX_WS_WIN 34 33 # include <QWindow> … … 637 636 638 637 /* Get corresponding host-screen: */ 639 const int iHostScreen = QApplication::desktop()->screenNumber(parentWidget());638 const int iHostScreen = gpDesktop->screenNumber(parentWidget()); 640 639 Q_UNUSED(iHostScreen); 641 640 /* And corresponding working area: */
Note:
See TracChangeset
for help on using the changeset viewer.