Changeset 62929 in vbox for trunk/src/VBox
- Timestamp:
- Aug 3, 2016 3:55:42 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r62682 r62929 29 29 # if QT_VERSION >= 0x050000 30 30 # include <QStandardPaths> 31 # ifdef VBOX_WS_X11 32 # include <QDesktopWidget> 33 # endif /* VBOX_WS_X11 */ 31 34 # else /* QT_VERSION < 0x050000 */ 32 35 # include <QDesktopServices> … … 135 138 } 136 139 140 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 141 void UISelectorWindow::sltHandleHostScreenAvailableAreaChange() 142 { 143 /* Prevent handling if fake screen detected: */ 144 if (vboxGlobal().isFakeScreenDetected()) 145 return; 146 147 /* Restore the geometry cached by the window: */ 148 resize(m_geometry.size()); 149 move(m_geometry.topLeft()); 150 } 151 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 152 137 153 void UISelectorWindow::sltShowSelectorWindowContextMenu(const QPoint &position) 138 154 { … … 1066 1082 case QEvent::Resize: 1067 1083 { 1084 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1085 /* Prevent handling if fake screen detected: */ 1086 if (vboxGlobal().isFakeScreenDetected()) 1087 break; 1088 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 1089 1068 1090 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 1069 1091 { … … 1075 1097 case QEvent::Move: 1076 1098 { 1099 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1100 /* Prevent handling if fake screen detected: */ 1101 if (vboxGlobal().isFakeScreenDetected()) 1102 break; 1103 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 1104 1077 1105 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 1078 1106 { … … 1695 1723 void UISelectorWindow::prepareConnections() 1696 1724 { 1725 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 1726 /* Desktop event handlers: */ 1727 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), this, SLOT(sltHandleHostScreenAvailableAreaChange())); 1728 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 1729 1697 1730 /* Medium enumeration connections: */ 1698 1731 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished()), this, SLOT(sltHandleMediumEnumerationFinish())); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r62493 r62929 66 66 67 67 private slots: 68 69 #if defined(VBOX_WS_X11) && QT_VERSION >= 0x050000 70 /** Handles host-screen available-area change. */ 71 void sltHandleHostScreenAvailableAreaChange(); 72 #endif /* VBOX_WS_X11 && QT_VERSION >= 0x050000 */ 68 73 69 74 /** Handles selector-window context-menu call for passed @a position. */
Note:
See TracChangeset
for help on using the changeset viewer.