VirtualBox

Changeset 27030 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 4, 2010 2:29:25 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: new core: more Mac fixes

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r26719 r27030  
    3535#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3636
     37#ifdef VBOX_WITH_NEW_RUNTIME_CORE
     38# include "UIMachineWindowNormal.h"
     39#endif /* !VBOX_WITH_NEW_RUNTIME_CORE */
     40
    3741VBoxCloseVMDlg::VBoxCloseVMDlg (QWidget *aParent)
    3842    : QIWithRetranslateUI<QIDialog> (aParent)
    3943{
    4044#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 */
    4153    /* Sheets are broken if the window is in fullscreen mode. So make it a
    4254     * normal window in that case. */
     
    4658         !cwnd->isTrueSeamless()))
    4759        setWindowFlags (Qt::Sheet);
     60# endif /* !VBOX_WITH_NEW_RUNTIME_CORE */
    4861#endif /* Q_WS_MAC */
    4962
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp

    r26714 r27030  
    4242#include <QKeyEvent>
    4343
     44#ifdef VBOX_WITH_NEW_RUNTIME_CORE
     45# include "UIMachineWindowNormal.h"
     46#endif /* !VBOX_WITH_NEW_RUNTIME_CORE */
    4447
    4548/** @class QIMessageBox
     
    6366{
    6467#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 */
    6575    /* Sheets are broken if the window is in fullscreen mode. So make it a
    6676     * normal window in that case. */
     
    7080         !cwnd->isTrueSeamless()))
    7181        setWindowFlags (Qt::Sheet);
     82# endif /* !VBOX_WITH_NEW_RUNTIME_CORE */
    7283#endif /* Q_WS_MAC */
    7384
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