Changeset 27030 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2010 2:29:25 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxCloseVMDlg.cpp
r26719 r27030 35 35 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 36 36 37 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 38 # include "UIMachineWindowNormal.h" 39 #endif /* !VBOX_WITH_NEW_RUNTIME_CORE */ 40 37 41 VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent) 38 42 : QIWithRetranslateUI<QIDialog> (aParent) 39 43 { 40 44 #ifdef Q_WS_MAC 45 46 # ifdef VBOX_WITH_NEW_RUNTIME_CORE 47 /* No sheets in another mode than normal for now. Firstly it looks ugly and 48 * secondly in some cases it is broken. */ 49 UIMachineWindowNormal *pWnd = qobject_cast<UIMachineWindowNormal*>(aParent); 50 if (pWnd) 51 setWindowFlags (Qt::Sheet); 52 # else /* VBOX_WITH_NEW_RUNTIME_CORE */ 41 53 /* Sheets are broken if the window is in fullscreen mode. So make it a 42 54 * normal window in that case. */ … … 46 58 !cwnd->isTrueSeamless())) 47 59 setWindowFlags (Qt::Sheet); 60 # endif /* !VBOX_WITH_NEW_RUNTIME_CORE */ 48 61 #endif /* Q_WS_MAC */ 49 62 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r26714 r27030 42 42 #include <QKeyEvent> 43 43 44 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 45 # include "UIMachineWindowNormal.h" 46 #endif /* !VBOX_WITH_NEW_RUNTIME_CORE */ 44 47 45 48 /** @class QIMessageBox … … 63 66 { 64 67 #ifdef Q_WS_MAC 68 # ifdef VBOX_WITH_NEW_RUNTIME_CORE 69 /* No sheets in another mode than normal for now. Firstly it looks ugly and 70 * secondly in some cases it is broken. */ 71 UIMachineWindowNormal *pWnd = qobject_cast<UIMachineWindowNormal*>(aParent); 72 if (pWnd) 73 setWindowFlags (Qt::Sheet); 74 # else /* VBOX_WITH_NEW_RUNTIME_CORE */ 65 75 /* Sheets are broken if the window is in fullscreen mode. So make it a 66 76 * normal window in that case. */ … … 70 80 !cwnd->isTrueSeamless())) 71 81 setWindowFlags (Qt::Sheet); 82 # endif /* !VBOX_WITH_NEW_RUNTIME_CORE */ 72 83 #endif /* Q_WS_MAC */ 73 84
Note:
See TracChangeset
for help on using the changeset viewer.