Changeset 27097 in vbox
- Timestamp:
- Mar 5, 2010 2:42:17 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58425
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMainDialog.cpp
r26714 r27097 45 45 , mRescode (QDialog::Rejected) 46 46 , mPolished (false) 47 , mIsAutoCentering (true) 47 48 , mCenterWidget (aParent) 48 49 { … … 126 127 } 127 128 129 void QIMainDialog::setAutoCenteringEnabled(bool fIsAutoCentering) 130 { 131 mIsAutoCentering = fIsAutoCentering; 132 } 128 133 129 134 void QIMainDialog::setVisible (bool aVisible) … … 227 232 /* Explicit widget centering relatively to it's centering 228 233 * widget if any or desktop if centering widget is missed. */ 229 VBoxGlobal::centerWidget (this, mCenterWidget, false); 234 if (mIsAutoCentering) 235 VBoxGlobal::centerWidget (this, mCenterWidget, false); 230 236 } 231 237 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMainDialog.h
r25177 r27097 52 52 QPushButton* defaultButton () const; 53 53 54 void setAutoCenteringEnabled(bool fIsAutoCentering); 55 54 56 public slots: 55 57 … … 89 91 90 92 bool mPolished; 93 bool mIsAutoCentering; 91 94 QWidget *mCenterWidget; 92 95 };
Note:
See TracChangeset
for help on using the changeset viewer.