VirtualBox

Changeset 27711 in vbox for trunk/src


Ignore:
Timestamp:
Mar 25, 2010 3:13:08 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: better fix for r59201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp

    r27635 r27711  
    4343#include <QKeyEvent>
    4444
    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) */
    4849
    4950/** @class QIMessageBox
     
    6768{
    6869#ifdef Q_WS_MAC
     70    VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent);
    6971# ifdef VBOX_WITH_NEW_RUNTIME_CORE
    7072    /* No sheets in another mode than normal for now. Firstly it looks ugly and
    7173     * 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)
    7477        setWindowFlags (Qt::Sheet);
    7578    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 */
    8380    /* Sheets are broken if the window is in fullscreen mode. So make it a
    8481     * normal window in that case. */
    85     VBoxConsoleWnd *cwnd = qobject_cast<VBoxConsoleWnd*> (aParent);
    8682    if (cwnd == NULL ||
    8783        (!cwnd->isTrueFullscreen() &&
    8884         !cwnd->isTrueSeamless()))
    8985        setWindowFlags (Qt::Sheet);
    90 # endif /* !VBOX_WITH_NEW_RUNTIME_CORE */
    9186#endif /* Q_WS_MAC */
    9287
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette