VirtualBox

Ignore:
Timestamp:
Feb 26, 2015 1:17:25 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Build fix for r98641.

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

Legend:

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

    r54527 r54528  
    2424# include <QPaintEvent>
    2525# include <QMetaEnum>
    26 # include <QCheckBox>
    2726# include <QMenuBar>
    2827# include <QPainter>
    2928# include <QMenu>
     29# ifndef Q_WS_MAC
     30#  include <QCheckBox>
     31# endif /* !Q_WS_MAC */
    3032
    3133/* GUI includes: */
     
    5557    , m_pToolBar(0)
    5658    , m_pButtonClose(0)
     59#ifndef Q_WS_MAC
    5760    , m_pCheckBoxEnable(0)
     61#endif /* !Q_WS_MAC */
    5862{
    5963    /* Prepare: */
     
    8387        return;
    8488
     89#ifndef Q_WS_MAC
    8590    /* Update enable-checkbox: */
    8691    updateEnableCheckbox();
     92#endif /* !Q_WS_MAC */
    8793
    8894    /* Update menus: */
     
    9096}
    9197
     98#ifndef RT_OS_DARWIN
    9299void UIMenuBarEditorWidget::sltHandleMenuBarEnableToggle(bool fEnabled)
    93100{
     
    104111    }
    105112}
     113#endif /* !RT_OS_DARWIN */
    106114
    107115void UIMenuBarEditorWidget::sltHandleMenuBarMenuClick()
     
    266274        if (iTop >= 5)
    267275            iTop -= 5;
     276#ifndef Q_WS_MAC
    268277        /* Right margin should be bigger for the settings case: */
    269278        if (m_fStartedFromVMSettings)
    270279            iRight += 5;
     280#endif /* !Q_WS_MAC */
    271281        /* Apply margins/spacing finally: */
    272282        m_pMainLayout->setContentsMargins(iLeft, iTop, iRight, iBottom);
     
    298308            }
    299309        }
     310#ifndef Q_WS_MAC
    300311        /* Create enable-checkbox if necessary: */
    301312        else
     
    313324            }
    314325        }
     326#endif /* !Q_WS_MAC */
    315327    }
    316328
     
    638650}
    639651
     652#ifndef Q_WS_MAC
    640653void UIMenuBarEditorWidget::updateEnableCheckbox()
    641654{
     
    648661    }
    649662}
     663#endif /* !Q_WS_MAC */
    650664
    651665void UIMenuBarEditorWidget::updateMenus()
     
    937951    if (!m_fStartedFromVMSettings && m_pButtonClose)
    938952        m_pButtonClose->setToolTip(tr("Close"));
     953#ifndef Q_WS_MAC
    939954    /* Translate enable-checkbox if necessary: */
    940955    if (m_fStartedFromVMSettings && m_pCheckBoxEnable)
    941956        m_pCheckBoxEnable->setToolTip(tr("Enable Menu Bar"));
     957#endif /* !Q_WS_MAC */
    942958}
    943959
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMenuBarEditorWindow.h

    r54527 r54528  
    3131class UIAction;
    3232class QIToolButton;
     33#ifndef Q_WS_MAC
    3334class QCheckBox;
     35#endif /* !Q_WS_MAC */
    3436class QHBoxLayout;
    3537class QAction;
     
    8789    void sltHandleConfigurationChange(const QString &strMachineID);
    8890
    89     /** Handles menu-bar enable toggle. */
     91#ifndef RT_OS_DARWIN
     92    /** Non Mac OS X: Handles menu-bar enable toggle. */
    9093    void sltHandleMenuBarEnableToggle(bool fEnabled);
     94#endif /* !RT_OS_DARWIN */
    9195    /** Handles menu-bar menu click. */
    9296    void sltHandleMenuBarMenuClick();
     
    138142    void prepareMenuHelp();
    139143
    140     /** Update enable-checkbox routine. */
     144#ifndef Q_WS_MAC
     145    /** Non Mac OS X: Update enable-checkbox routine. */
    141146    void updateEnableCheckbox();
     147#endif /* !Q_WS_MAC */
    142148    /** Update menus routine. */
    143149    void updateMenus();
     
    191197        /** Holds the close-button instance. */
    192198        QIToolButton *m_pButtonClose;
    193         /** Holds the enable-checkbox instance. */
     199#ifndef Q_WS_MAC
     200        /** Non Mac OS X: Holds the enable-checkbox instance. */
    194201        QCheckBox *m_pCheckBoxEnable;
     202#endif /* !Q_WS_MAC */
    195203        /** Holds tool-bar action references. */
    196204        QMap<QString, QAction*> m_actions;
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