Changeset 10916 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Jul 28, 2008 2:46:54 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r10742 r10916 447 447 include/QIMainDialog.h \ 448 448 include/QIHelpButton.h \ 449 include/QIDialog.h \ 449 450 include/VBoxFilePathSelectorWidget.h \ 450 451 include/VBoxUtils.h \ -
trunk/src/VBox/Frontends/VirtualBox4/include/QIDialog.h
r8331 r10916 29 29 class QIDialog: public QDialog 30 30 { 31 Q_OBJECT; 32 31 33 public: 34 32 35 QIDialog (QWidget *aParent = 0, Qt::WindowFlags aFlags = 0); 33 36 34 37 protected: 38 35 39 void showEvent (QShowEvent *aEvent); 40 41 bool mPolished; 36 42 }; 37 43 -
trunk/src/VBox/Frontends/VirtualBox4/src/QIDialog.cpp
r10796 r10916 23 23 24 24 #include "QIDialog.h" 25 #include "VBoxGlobal.h" 25 26 #ifdef Q_WS_MAC 26 27 #include "VBoxUtils.h" … … 28 29 29 30 QIDialog::QIDialog (QWidget *aParent, Qt::WindowFlags aFlags) 30 : QDialog (aParent, aFlags) 31 : QDialog (aParent, aFlags) 32 , mPolished (false) 31 33 { 32 34 } … … 48 50 #endif /* Q_WS_MAC */ 49 51 } 52 53 /* Polishing border */ 54 if (mPolished) 55 return; 56 mPolished = true; 57 58 /* Explicit widget centering relatively to it's parent 59 * if any or desktop if parent is missed. */ 60 vboxGlobal().centerWidget (this, parentWidget(), false); 50 61 } 51 62 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r10892 r10916 686 686 : mValid (false) 687 687 , mSelectorWnd (NULL), mConsoleWnd (NULL) 688 , mMainWindow (NULL) 688 689 #ifdef VBOX_WITH_REGISTRATION 689 690 , mRegDlg (NULL) 690 691 #endif 692 , mUpdDlg (NULL) 691 693 , media_enum_thread (NULL) 692 694 , verString ("1.0") -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxUpdateDlg.cpp
r10856 r10916 368 368 /* For background update */ 369 369 if (mForceRun) 370 vboxProblem().showUpdateFailure ( this, aReason);370 vboxProblem().showUpdateFailure (vboxGlobal().mainWindow(), aReason); 371 371 QTimer::singleShot (0, this, SLOT (accept())); 372 372 } … … 406 406 { 407 407 /* For background update */ 408 vboxProblem().showUpdateSuccess ( this,408 vboxProblem().showUpdateSuccess (vboxGlobal().mainWindow(), 409 409 lv.toString(), platformInfo [1]); 410 410 QTimer::singleShot (0, this, SLOT (accept())); … … 428 428 /* For background update */ 429 429 if (mForceRun) 430 vboxProblem().showUpdateNotFound ( this);430 vboxProblem().showUpdateNotFound (vboxGlobal().mainWindow()); 431 431 QTimer::singleShot (0, this, SLOT (accept())); 432 432 }
Note:
See TracChangeset
for help on using the changeset viewer.