- Timestamp:
- Jul 12, 2011 10:17:30 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72784
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/UIMediumTypeChangeDialog.cpp
r37874 r37885 33 33 /* Constructor: */ 34 34 UIMediumTypeChangeDialog::UIMediumTypeChangeDialog(QWidget *pParent, const QString &strMediumId) 35 : QIWithRetranslateUI<Q Dialog>(pParent)35 : QIWithRetranslateUI<QIDialog>(pParent) 36 36 { 37 #ifdef Q_WS_MAC 38 setWindowFlags(Qt::Sheet); 39 #else /* Q_WS_MAC */ 40 /* Enable size-grip: */ 41 setSizeGripEnabled(true); 42 #endif /* Q_WS_MAC */ 43 37 44 /* Search for corresponding medium: */ 38 45 m_medium = vboxGlobal().findMedium(strMediumId).medium(); 39 46 m_oldMediumType = m_medium.GetType(); 40 47 m_newMediumType = m_oldMediumType; 41 42 /* Enable size-grip: */43 setSizeGripEnabled(true);44 48 45 49 /* Create main layout: */ … … 91 95 } 92 96 /* Accept dialog with parent class method: */ 93 QIWithRetranslateUI<Q Dialog>::accept();97 QIWithRetranslateUI<QIDialog>::accept(); 94 98 } 95 99 … … 98 102 { 99 103 /* Reject dialog with parent class method: */ 100 QIWithRetranslateUI<Q Dialog>::reject();104 QIWithRetranslateUI<QIDialog>::reject(); 101 105 } 102 106 -
trunk/src/VBox/Frontends/VirtualBox/src/UIMediumTypeChangeDialog.h
r37874 r37885 20 20 #define __UIMediumTypeChangeDialog_h__ 21 21 22 /* Global includes: */23 #include <QDialog>24 25 22 /* Local includes: */ 23 #include "QIDialog.h" 26 24 #include "QIWithRetranslateUI.h" 27 25 #include "COMDefs.h" … … 35 33 36 34 /* Dialog providing user with possibility to change medium type: */ 37 class UIMediumTypeChangeDialog : public QIWithRetranslateUI<Q Dialog>35 class UIMediumTypeChangeDialog : public QIWithRetranslateUI<QIDialog> 38 36 { 39 37 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.