Changeset 39094 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 24, 2011 3:46:58 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r39076 r39094 556 556 QSize UIMachineView::sizeHint() const 557 557 { 558 if (m_sizeHintOverride.isValid()) 559 return m_sizeHintOverride; 558 560 #ifdef VBOX_WITH_DEBUGGER 559 561 // TODO: Fix all DEBUGGER stuff! … … 858 860 /* Reapply maximum size restriction for machine-view: */ 859 861 setMaximumSize(sizeHint()); 862 863 /* Disable the resize hint override hack: */ 864 m_sizeHintOverride = QSize(-1, -1); 860 865 861 866 /* Perform machine-view resize: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r39081 r39094 197 197 UIFrameBuffer *m_pFrameBuffer; 198 198 KMachineState m_previousState; 199 /** HACK: when switching out of fullscreen or seamless we wish to override 200 * the default size hint to avoid short resizes back to fullscreen size. 201 * Not explicitly initialised (i.e. invalid by default). */ 202 QSize m_sizeHintOverride; 199 203 200 204 /** The policy for calculating the maximum guest resolution which we wish -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r39081 r39094 215 215 * the following resize() is acted upon. */ 216 216 setMaximumSize(hint); 217 resize(hint);217 m_sizeHintOverride = hint; 218 218 sltPerformGuestResize(hint); 219 219 }
Note:
See TracChangeset
for help on using the changeset viewer.