VirtualBox

Changeset 71923 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 19, 2018 1:22:46 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Tiny cleanup for UIMenuBar and move it to VBoxGlobal library.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r71922 r71923  
    558558        src/widgets/UIEmptyFilePathSelector.h \
    559559        src/widgets/UILineTextEdit.h \
    560         src/widgets/UIMenuBar.h \
    561560        src/widgets/UIPortForwardingTable.h \
    562561        src/widgets/UISlidingWidget.h \
     
    686685        src/widgets/UIHotKeyEditor.h \
    687686        src/widgets/UIMediumSizeEditor.h \
     687        src/widgets/UIMenuBar.h \
    688688        src/widgets/UIPopupBox.h \
    689689        src/widgets/UIPopupPane.h \
     
    779779        src/widgets/UIHotKeyEditor.h \
    780780        src/widgets/UIMediumSizeEditor.h \
     781        src/widgets/UIMenuBar.h \
    781782        src/widgets/UIPopupBox.h \
    782783        src/widgets/UIPopupPane.h \
     
    10491050        src/widgets/UIEmptyFilePathSelector.cpp \
    10501051        src/widgets/UILineTextEdit.cpp \
    1051         src/widgets/UIMenuBar.cpp \
    10521052        src/widgets/UIPortForwardingTable.cpp \
    10531053        src/widgets/UISlidingWidget.cpp \
     
    12171217        src/widgets/UIHotKeyEditor.cpp \
    12181218        src/widgets/UIMediumSizeEditor.cpp \
     1219        src/widgets/UIMenuBar.cpp \
    12191220        src/widgets/UIPopupBox.cpp \
    12201221        src/widgets/UIPopupPane.cpp \
     
    13361337        src/widgets/UIHotKeyEditor.cpp \
    13371338        src/widgets/UIMediumSizeEditor.cpp \
     1339        src/widgets/UIMenuBar.cpp \
    13381340        src/widgets/UIPopupBox.cpp \
    13391341        src/widgets/UIPopupPane.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBar.cpp

    r69500 r71923  
    55
    66/*
    7  * Copyright (C) 2010-2017 Oracle Corporation
     7 * Copyright (C) 2010-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2626
    2727/* GUI includes: */
     28# include "VBoxGlobal.h"
     29# include "UIImageTools.h"
    2830# include "UIMenuBar.h"
    29 # include "UIImageTools.h"
    30 # include "VBoxGlobal.h"
    3131
    3232#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     
    4444void UIMenuBar::paintEvent(QPaintEvent *pEvent)
    4545{
     46    /* Call to base-class: */
    4647    QMenuBar::paintEvent(pEvent);
     48
     49    /* Draw BETA label if necessary: */
    4750    if (m_fShowBetaLabel)
    4851    {
     
    6063    }
    6164}
    62 
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuBar.h

    r69500 r71923  
    55
    66/*
    7  * Copyright (C) 2010-2017 Oracle Corporation
     7 * Copyright (C) 2010-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2222#include <QMenuBar>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
     27/* Forward declarations: */
     28class QPaintEvent;
     29class QWidget;
     30
    2431/** QMenuBar extension
    2532  * which reflects BETA label when necessary. */
    26 class UIMenuBar: public QMenuBar
     33class SHARED_LIBRARY_STUFF UIMenuBar: public QMenuBar
    2734{
    2835    Q_OBJECT;
     
    3643
    3744    /** Paint event handler. */
    38     void paintEvent(QPaintEvent *pEvent);
     45    virtual void paintEvent(QPaintEvent *pEvent) /* override */;
    3946
    4047private:
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