- Timestamp:
- Mar 25, 2010 3:13:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r27635 r27711 43 43 #include <QKeyEvent> 44 44 45 #ifdef VBOX_WITH_NEW_RUNTIME_CORE 46 # include "UIMachineWindowNormal.h" 47 #endif /* !VBOX_WITH_NEW_RUNTIME_CORE */ 45 #if defined(VBOX_WITH_NEW_RUNTIME_CORE) && defined(Q_WS_MAC) 46 # include "UIMachineWindowFullscreen.h" 47 # include "UIMachineWindowSeamless.h" 48 #endif /* defined(VBOX_WITH_NEW_RUNTIME_CORE) && defined(Q_WS_MAC) */ 48 49 49 50 /** @class QIMessageBox … … 67 68 { 68 69 #ifdef Q_WS_MAC 70 VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent); 69 71 # ifdef VBOX_WITH_NEW_RUNTIME_CORE 70 72 /* No sheets in another mode than normal for now. Firstly it looks ugly and 71 73 * secondly in some cases it is broken. */ 72 UIMachineWindowNormal *pWnd = qobject_cast<UIMachineWindowNormal*>(aParent); 73 if (pWnd) 74 if ( !( qobject_cast<UIMachineWindowFullscreen*>(aParent) 75 || qobject_cast<UIMachineWindowSeamless*>(aParent)) 76 && !cwnd) 74 77 setWindowFlags (Qt::Sheet); 75 78 else 76 { 77 /* In the selector window ofc. */ 78 VBoxSelectorWnd *pSWnd = qobject_cast<VBoxSelectorWnd*>(aParent); 79 if (pSWnd) 80 setWindowFlags(Qt::Sheet); 81 } 82 # else /* VBOX_WITH_NEW_RUNTIME_CORE */ 79 # endif /* VBOX_WITH_NEW_RUNTIME_CORE */ 83 80 /* Sheets are broken if the window is in fullscreen mode. So make it a 84 81 * normal window in that case. */ 85 VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent);86 82 if (cwnd == NULL || 87 83 (!cwnd->isTrueFullscreen() && 88 84 !cwnd->isTrueSeamless())) 89 85 setWindowFlags (Qt::Sheet); 90 # endif /* !VBOX_WITH_NEW_RUNTIME_CORE */91 86 #endif /* Q_WS_MAC */ 92 87
Note:
See TracChangeset
for help on using the changeset viewer.