Changeset 12097 in vbox for trunk/src/VBox
- Timestamp:
- Sep 4, 2008 2:30:08 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 36038
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxCloseVMDlg.h
r9729 r12097 28 28 #include "QIDialog.h" 29 29 30 class VBoxCloseVMDlg : public QIWithRetranslateUI 2<QIDialog>,30 class VBoxCloseVMDlg : public QIWithRetranslateUI<QIDialog>, 31 31 public Ui::VBoxCloseVMDlg 32 32 { -
trunk/src/VBox/Frontends/VirtualBox4/src/QIMessageBox.cpp
r11694 r12097 27 27 #include "QILabel.h" 28 28 #include "QIDialogButtonBox.h" 29 #ifdef Q_WS_MAC 30 # include "VBoxConsoleWnd.h" 31 #endif /* Q_WS_MAC */ 29 32 30 33 /* Qt includes */ … … 47 50 QWidget *aParent, const char *aName, bool aModal) 48 51 : QIDialog (aParent, 49 Qt::Window | Qt::Sheet |52 Qt::Window | 50 53 Qt::MSWindowsFixedSizeDialogHint | Qt::WindowTitleHint | Qt::WindowSystemMenuHint) 51 54 { 55 #ifdef Q_WS_MAC 56 /* Sheets are broken if the window is in fullscreen mode. So make it a 57 * normal window in that case. */ 58 VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent); 59 if (cwnd != NULL && 60 !cwnd->isTrueFullscreen() && 61 !cwnd->isTrueSeamless()) 62 setWindowFlags (windowFlags() | Qt::Sheet); 63 #endif /* Q_WS_MAC */ 64 65 52 66 setWindowTitle (aCaption); 53 67 /* Necessary to later find some of the message boxes */ -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxCloseVMDlg.cpp
r11817 r12097 23 23 #include "VBoxCloseVMDlg.h" 24 24 #include "VBoxProblemReporter.h" 25 #ifdef Q_WS_MAC 26 # include "VBoxConsoleWnd.h" 27 #endif /* Q_WS_MAC */ 25 28 26 29 /* Qt includes */ … … 28 31 29 32 VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent) 30 : QIWithRetranslateUI 2<QIDialog> (aParent, Qt::Sheet)33 : QIWithRetranslateUI<QIDialog> (aParent) 31 34 { 35 #ifdef Q_WS_MAC 36 /* Sheets are broken if the window is in fullscreen mode. So make it a 37 * normal window in that case. */ 38 VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent); 39 if (cwnd != NULL && 40 !cwnd->isTrueFullscreen() && 41 !cwnd->isTrueSeamless()) 42 setWindowFlags (Qt::Sheet); 43 #endif /* Q_WS_MAC */ 44 32 45 /* Apply UI decorations */ 33 46 Ui::VBoxCloseVMDlg::setupUi (this);
Note:
See TracChangeset
for help on using the changeset viewer.