- Timestamp:
- Aug 3, 2016 1:38:58 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r62493 r62913 86 86 const QString& machineName() const; 87 87 88 /** Restores cached window geometry. 89 * @note Reimplemented in sub-classes. Base implementation does nothing. */ 90 virtual void restoreCachedGeometry() {} 91 88 92 /** Adjusts machine-window size to correspond current machine-view size. 89 93 * @param fAdjustPosition determines whether is it necessary to adjust position too. -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r62493 r62913 513 513 } 514 514 515 void UIMachineWindowNormal::restoreCachedGeometry() 516 { 517 /* Restore the geometry cached by the window: */ 518 resize(m_normalGeometry.size()); 519 move(m_normalGeometry.topLeft()); 520 521 /* Adjust machine-view accordingly: */ 522 adjustMachineViewSize(); 523 } 524 515 525 void UIMachineWindowNormal::normalizeGeometry(bool fAdjustPosition) 516 526 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r62493 r62913 113 113 void showInNecessaryMode(); 114 114 115 /** Restores cached window geometry. */ 116 virtual void restoreCachedGeometry() /* override */; 117 115 118 /** Performs window geometry normalization according to guest-size and host's available geometry. 116 119 * @param fAdjustPosition Determines whether is it necessary to adjust position as well. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
r62493 r62913 164 164 } 165 165 166 void UIMachineWindowScale::restoreCachedGeometry() 167 { 168 /* Restore the geometry cached by the window: */ 169 resize(m_normalGeometry.size()); 170 move(m_normalGeometry.topLeft()); 171 172 /* Adjust machine-view accordingly: */ 173 adjustMachineViewSize(); 174 } 175 166 176 bool UIMachineWindowScale::event(QEvent *pEvent) 167 177 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h
r62493 r62913 54 54 void showInNecessaryMode(); 55 55 56 /** Restores cached window geometry. */ 57 virtual void restoreCachedGeometry() /* override */; 58 56 59 /** Common @a pEvent handler. */ 57 60 bool event(QEvent *pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.