- Timestamp:
- Aug 5, 2016 12:31:29 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r63003 r63040 166 166 updateHostScreenConfiguration(cHostScreenCount); 167 167 # endif /* VBOX_WS_X11 */ 168 169 /* Notify listeners: */ 170 emit sigHostScreenCountChanged(cHostScreenCount); 168 171 #endif /* QT_VERSION < 0x050000 */ 169 172 } … … 180 183 updateHostScreenConfiguration(); 181 184 # endif /* VBOX_WS_X11 */ 185 186 /* Notify listeners: */ 187 emit sigHostScreenCountChanged(screenCount()); 182 188 #endif /* QT_VERSION >= 0x050000 */ 183 189 } … … 194 200 updateHostScreenConfiguration(); 195 201 # endif /* VBOX_WS_X11 */ 202 203 /* Notify listeners: */ 204 emit sigHostScreenCountChanged(screenCount()); 196 205 #endif /* QT_VERSION >= 0x050000 */ 197 206 } … … 200 209 { 201 210 // printf("UIDesktopWidgetWatchdog::sltHandleHostScreenResized(%d)\n", iHostScreenIndex); 202 203 Q_UNUSED(iHostScreenIndex);204 211 205 212 #ifdef VBOX_WS_X11 … … 207 214 updateHostScreenAvailableGeometry(iHostScreenIndex); 208 215 #endif /* VBOX_WS_X11 */ 216 217 /* Notify listeners: */ 218 emit sigHostScreenResized(iHostScreenIndex); 219 } 220 221 void UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized(int iHostScreenIndex) 222 { 223 // printf("UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized(%d)\n", iHostScreenIndex); 224 225 /* Notify listeners: */ 226 emit sigHostScreenWorkAreaResized(iHostScreenIndex); 209 227 } 210 228 … … 222 240 m_availableGeometryWorkers.value(iHostScreenIndex)->deleteLater(); 223 241 m_availableGeometryWorkers[iHostScreenIndex] = 0; 242 243 /* Notify listeners: */ 244 emit sigHostScreenWorkAreaResized(iHostScreenIndex); 224 245 } 225 246 #endif /* VBOX_WS_X11 */ … … 232 253 connect(qApp, SIGNAL(screenRemoved(QScreen *)), this, SLOT(sltHostScreenRemoved(QScreen *))); 233 254 connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int))); 255 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), this, SLOT(sltHandleHostScreenWorkAreaResized(int))); 234 256 235 257 #ifdef VBOX_WS_X11 … … 246 268 disconnect(qApp, SIGNAL(screenRemoved(QScreen *)), this, SLOT(sltHostScreenRemoved(QScreen *))); 247 269 disconnect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltHandleHostScreenResized(int))); 270 disconnect(QApplication::desktop(), SIGNAL(workAreaResized(int)), this, SLOT(sltHandleHostScreenWorkAreaResized(int))); 248 271 249 272 #ifdef VBOX_WS_X11 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h
r63003 r63040 38 38 Q_OBJECT; 39 39 40 signals: 41 42 /** Notifies about host-screen count change to @a cHostScreenCount. */ 43 void sigHostScreenCountChanged(int cHostScreenCount); 44 45 /** Notifies about resize for the host-screen with @a iHostScreenIndex. */ 46 void sigHostScreenResized(int iHostScreenIndex); 47 48 /** Notifies about work-area resize for the host-screen with @a iHostScreenIndex. */ 49 void sigHostScreenWorkAreaResized(int iHostScreenIndex); 50 40 51 public: 41 52 … … 66 77 /** Handles resize for the host-screen with @a iHostScreenIndex. */ 67 78 void sltHandleHostScreenResized(int iHostScreenIndex); 79 80 /** Handles work-area resize for the host-screen with @a iHostScreenIndex. */ 81 void sltHandleHostScreenWorkAreaResized(int iHostScreenIndex); 68 82 69 83 #ifdef VBOX_WS_X11
Note:
See TracChangeset
for help on using the changeset viewer.