Changeset 11343 in vbox
- Timestamp:
- Aug 11, 2008 6:03:38 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34486
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/QIMainDialog.h
r10934 r11343 59 59 60 60 virtual bool event (QEvent *aEvent); 61 virtual void showEvent (QShowEvent *aEvent); 61 62 virtual void resizeEvent (QResizeEvent *aEvent); 62 63 virtual bool eventFilter (QObject *aObject, QEvent *aEvent); … … 84 85 QPointer<QSizeGrip> mSizeGrip; 85 86 QPointer<QPushButton> mDefaultButton; 87 88 bool mPolished; 86 89 }; 87 90 -
trunk/src/VBox/Frontends/VirtualBox4/src/QIMainDialog.cpp
r10934 r11343 23 23 #include "QIMainDialog.h" 24 24 #include "VBoxUtils.h" 25 #include "VBoxGlobal.h" 25 26 26 27 #include <iprt/assert.h> … … 42 43 : QMainWindow (aParent, aFlags) 43 44 , mRescode (QDialog::Rejected) 45 , mPolished (false) 44 46 { 45 47 qApp->installEventFilter (this); … … 212 214 } 213 215 216 void QIMainDialog::showEvent (QShowEvent *aEvent) 217 { 218 QMainWindow::showEvent (aEvent); 219 220 /* Polishing border */ 221 if (mPolished) 222 return; 223 mPolished = true; 224 225 /* Explicit widget centering relatively to it's parent 226 * if any or desktop if parent is missed. */ 227 vboxGlobal().centerWidget (this, parentWidget(), false); 228 } 229 214 230 void QIMainDialog::resizeEvent (QResizeEvent *aEvent) 215 231 {
Note:
See TracChangeset
for help on using the changeset viewer.