Changeset 88910 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 6, 2021 5:28:11 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r88874 r88910 3899 3899 } 3900 3900 3901 void UISoftKeyboard::resizeEvent(QResizeEvent *pEvent) 3902 { 3903 QMainWindowWithRestorableGeometryAndRetranslateUi::resizeEvent(pEvent); 3904 saveDialogGeometry(); 3905 } 3906 3907 void UISoftKeyboard 3908 ::moveEvent(QMoveEvent *pEvent) 3909 { 3910 QMainWindowWithRestorableGeometryAndRetranslateUi::moveEvent(pEvent); 3911 saveDialogGeometry(); 3912 } 3913 3901 3914 bool UISoftKeyboard::event(QEvent *pEvent) 3902 3915 { … … 4219 4232 } 4220 4233 4221 void UISoftKeyboard::sltSaveSettings() 4222 { 4223 /* Save geometry to extradata: */ 4234 void UISoftKeyboard::saveDialogGeometry() 4235 { 4224 4236 const QRect geo = currentGeometry(); 4225 4237 LogRel2(("GUI: UISoftKeyboard: Saving geometry as: Origin=%dx%d, Size=%dx%d\n", 4226 4238 geo.x(), geo.y(), geo.width(), geo.height())); 4227 4239 gEDataManager->setSoftKeyboardDialogGeometry(geo, isCurrentlyMaximized()); 4228 4240 } 4241 4242 void UISoftKeyboard::sltSaveSettings() 4243 { 4229 4244 /* Save other settings: */ 4230 4245 if (m_pKeyboardWidget) -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r88874 r88910 70 70 virtual bool shouldBeMaximized() const /* override */; 71 71 virtual void closeEvent(QCloseEvent *event) /* override */; 72 virtual void resizeEvent(QResizeEvent *pEvent) /* override */; 73 virtual void moveEvent(QMoveEvent *pEvent) /* override */; 72 74 bool event(QEvent *pEvent) /* override */; 73 75 … … 112 114 void prepareConnections(); 113 115 void loadSettings(); 116 void saveDialogGeometry(); 114 117 void configure(); 115 118 void updateStatusBarMessage(const QString &strLayoutName);
Note:
See TracChangeset
for help on using the changeset viewer.