VirtualBox

Changeset 52480 in vbox


Ignore:
Timestamp:
Aug 22, 2014 3:53:41 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95697
Message:

FE/Qt: Mac OS X: For for r95695: No menu-bar indent under this OS.

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

Legend:

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

    r52478 r52480  
    825825
    826826UIMenuBarEditorWindow::UIMenuBarEditorWindow(UIMachineWindow *pParent, UIActionPool *pActionPool)
     827#ifndef Q_WS_MAC
    827828    : UISlidingToolBar(pParent, pParent->menuBar(), new UIMenuBarEditorWidget(pActionPool), UISlidingToolBar::Position_Top)
     829#else /* Q_WS_MAC */
     830    : UISlidingToolBar(pParent, 0, new UIMenuBarEditorWidget(pActionPool), UISlidingToolBar::Position_Top)
     831#endif /* Q_WS_MAC */
    828832{
    829833}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISlidingToolBar.cpp

    r52402 r52480  
    3232    : QWidget(pParentWidget, Qt::Tool | Qt::FramelessWindowHint)
    3333    , m_position(position)
    34     , m_parentRect(pParentWidget->geometry())
    35     , m_indentRect(pIndentWidget->geometry())
     34    , m_parentRect(pParentWidget ? pParentWidget->geometry() : QRect())
     35    , m_indentRect(pIndentWidget ? pIndentWidget->geometry() : QRect())
    3636    , m_pAnimation(0)
    3737    , m_fExpanded(false)
Note: See TracChangeset for help on using the changeset viewer.

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