Changeset 39081 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 21, 2011 9:20:24 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r39023 r39081 229 229 * Later it will become more abstract but now its just used to help 230 230 * fullscreen & seamless modes to restore normal guest size hint. */ 231 /** @todo This class is now unused - can it be removed altogether? */ 231 232 class UIMachineViewBlocker : public QEventLoop 232 233 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r39023 r39081 93 93 } 94 94 95 void UIMachineViewFullscreen::sltDesktopResized()96 {97 98 }99 100 95 bool UIMachineViewFullscreen::event(QEvent *pEvent) 101 96 { … … 169 164 } 170 165 171 void UIMachineViewFullscreen::prepareConnections()172 {173 connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));174 }175 176 166 void UIMachineViewFullscreen::prepareConsoleConnections() 177 167 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h
r39023 r39081 44 44 void sltAdditionsStateChanged(); 45 45 46 /* Watch dog for desktop resizes: */47 void sltDesktopResized();48 49 46 private: 50 47 … … 56 53 void prepareCommon(); 57 54 void prepareFilters(); 58 void prepareConnections();59 55 void prepareConsoleConnections(); 60 56 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r39077 r39081 64 64 prepareFilters(); 65 65 66 /* Prepare connections: */67 prepareConnections();68 69 66 /* Prepare console connections: */ 70 67 prepareConsoleConnections(); … … 94 91 * switch. */ 95 92 maybeResendResizeHint(); 96 }97 98 void UIMachineViewNormal::sltDesktopResized()99 {100 101 93 } 102 94 … … 195 187 } 196 188 197 void UIMachineViewNormal::prepareConnections()198 {199 connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));200 }201 202 189 void UIMachineViewNormal::prepareConsoleConnections() 203 190 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h
r39077 r39081 44 44 void sltAdditionsStateChanged(); 45 45 46 /* Watch dog for desktop resizes: */47 void sltDesktopResized();48 49 46 #ifdef Q_WS_X11 50 47 /* Slot to perform synchronized geometry normalization. … … 62 59 void prepareCommon(); 63 60 void prepareFilters(); 64 void prepareConnections();65 61 void prepareConsoleConnections(); 66 62 //void loadMachineViewSettings(); … … 74 70 void saveMachineViewSettings(); 75 71 //void cleanupConsoleConnections() {} 76 //void prepareConnections() {}77 72 //void cleanupFilters() {} 78 73 //void cleanupCommon() {} -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp
r39023 r39081 64 64 prepareFilters(); 65 65 66 /* Prepare connections: */67 prepareConnections();68 69 66 /* Prepare console connections: */ 70 67 prepareConsoleConnections(); … … 150 147 /* Update machine-view sliders: */ 151 148 updateSliders(); 152 }153 154 void UIMachineViewScale::sltDesktopResized()155 {156 157 149 } 158 150 … … 339 331 } 340 332 341 void UIMachineViewScale::prepareConnections()342 {343 connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));344 }345 346 333 void UIMachineViewScale::saveMachineViewSettings() 347 334 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.h
r39023 r39081 49 49 void sltPerformGuestScale(); 50 50 51 /* Watch dog for desktop resizes: */52 void sltDesktopResized();53 54 51 private: 55 52 … … 60 57 /* Prepare helpers: */ 61 58 void prepareFrameBuffer(); 62 void prepareConnections();63 59 //void loadMachineViewSettings(); 64 60 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r39023 r39081 66 66 prepareFilters(); 67 67 68 /* Prepare connections: */69 prepareConnections();70 71 68 /* Prepare console connections: */ 72 69 prepareConsoleConnections(); … … 92 89 { 93 90 // TODO: Exit seamless if additions doesn't support it! 94 }95 96 void UIMachineViewSeamless::sltDesktopResized()97 {98 /** @todo Try to resize framebuffer according new desktop size,99 * exit seamless if resize is failed! */100 /** @todo Check whether this isn't already fixed elsewhere.101 * I don't think that it is the GUI's job to check that102 * the resize succeeded though. */103 91 } 104 92 … … 188 176 } 189 177 190 void UIMachineViewSeamless::prepareConnections()191 {192 connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));193 }194 195 178 void UIMachineViewSeamless::prepareConsoleConnections() 196 179 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h
r39023 r39081 49 49 void sltAdditionsStateChanged(); 50 50 51 /* Watch dog for desktop resizes: */52 void sltDesktopResized();53 54 51 private: 55 52 … … 61 58 void prepareCommon(); 62 59 void prepareFilters(); 63 void prepareConnections();64 60 void prepareConsoleConnections(); 65 61 void prepareSeamless(); … … 68 64 void cleanupSeamless(); 69 65 //void cleanupConsoleConnections() {} 70 //void prepareConnections() {}71 66 //void cleanupFilters() {} 72 67 //void cleanupCommon() {}
Note:
See TracChangeset
for help on using the changeset viewer.