Changeset 49009 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 9, 2013 3:06:13 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r48689 r49009 63 63 void UIMachineViewFullscreen::sltAdditionsStateChanged() 64 64 { 65 /* Check if we should resize guest to fullscreen */ 66 if ((int)frameBuffer()->width() != workingArea().size().width() || 67 (int)frameBuffer()->height() != workingArea().size().height()) 68 if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 69 sltPerformGuestResize(workingArea().size()); 65 normalizeGeometry(false); 70 66 } 71 67 … … 142 138 void UIMachineViewFullscreen::normalizeGeometry(bool /* fAdjustPosition */) 143 139 { 144 sltPerformGuestResize(workingArea().size()); 140 /* Check if we should adjust guest to new size: */ 141 if ((int)frameBuffer()->width() != workingArea().size().width() || 142 (int)frameBuffer()->height() != workingArea().size().height()) 143 if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics()) 144 sltPerformGuestResize(workingArea().size()); 145 145 } 146 146 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h
r46361 r49009 41 41 private slots: 42 42 43 /* Console callback handlers: */43 /* Handler: Console callback stuff: */ 44 44 void sltAdditionsStateChanged(); 45 45 … … 56 56 /* Cleanup routines: */ 57 57 //void cleanupConsoleConnections() {} 58 //void cleanupConnections() {}59 58 //void cleanupFilters() {} 60 59 //void cleanupCommon() {} … … 64 63 65 64 /* Private helpers: */ 66 void normalizeGeometry(bool /* fAdjustPosition */);65 void normalizeGeometry(bool fAdjustPosition); 67 66 QRect workingArea() const; 68 67 QSize calculateMaxGuestSize() const; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r48689 r49009 70 70 } 71 71 72 void UIMachineViewSeamless::sltAdditionsStateChanged() 73 { 74 normalizeGeometry(false); 75 } 76 72 77 void UIMachineViewSeamless::sltHandleSetVisibleRegion(QRegion region) 73 78 { … … 126 131 } 127 132 133 void UIMachineViewSeamless::prepareConsoleConnections() 134 { 135 /* Base class connections: */ 136 UIMachineView::prepareConsoleConnections(); 137 138 /* Guest additions state-change updater: */ 139 connect(uisession(), SIGNAL(sigAdditionsStateChange()), this, SLOT(sltAdditionsStateChanged())); 140 } 141 128 142 void UIMachineViewSeamless::prepareSeamless() 129 143 { … … 138 152 /* Reset seamless feature flag of the guest: */ 139 153 session().GetConsole().GetDisplay().SetSeamlessMode(false); 154 } 155 156 void UIMachineViewSeamless::normalizeGeometry(bool /* fAdjustPosition */) 157 { 158 /* Check if we should adjust guest to new size: */ 159 if ((int)frameBuffer()->width() != workingArea().size().width() || 160 (int)frameBuffer()->height() != workingArea().size().height()) 161 if (uisession()->isGuestSupportsGraphics()) 162 sltPerformGuestResize(workingArea().size()); 140 163 } 141 164 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h
r46364 r49009 41 41 private slots: 42 42 43 /* Handler: Console callback stuff: */ 44 void sltAdditionsStateChanged(); 45 43 46 /* Handler: Frame-buffer SetVisibleRegion stuff: */ 44 47 virtual void sltHandleSetVisibleRegion(QRegion region); … … 52 55 void prepareCommon(); 53 56 void prepareFilters(); 57 void prepareConsoleConnections(); 54 58 void prepareSeamless(); 55 59 56 60 /* Cleanup helpers: */ 57 61 void cleanupSeamless(); 62 //void cleanupConsoleConnections() {} 58 63 //void cleanupFilters() {} 59 64 //void cleanupCommon() {} 60 65 61 66 /* Private helpers: */ 62 void normalizeGeometry(bool /* fAdjustPosition */) {}67 void normalizeGeometry(bool fAdjustPosition); 63 68 QRect workingArea() const; 64 69 QSize calculateMaxGuestSize() const;
Note:
See TracChangeset
for help on using the changeset viewer.