VirtualBox

Changeset 52658 in vbox


Ignore:
Timestamp:
Sep 9, 2014 4:02:15 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 3646: Runtime UI: Indicators-pool: Consume unnecesary context-menu events.

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

Legend:

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

    r52385 r52658  
    12641264}
    12651265
     1266void UIIndicatorsPool::contextMenuEvent(QContextMenuEvent *pEvent)
     1267{
     1268    /* Do not pass-through context menu events,
     1269     * otherwise they will raise the underlying status-bar context-menu. */
     1270    pEvent->accept();
     1271}
     1272
    12661273int UIIndicatorsPool::indicatorPosition(IndicatorType indicatorType) const
    12671274{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.h

    r52385 r52658  
    9595    void cleanup();
    9696
     97    /** Context-menu event handler. */
     98    void contextMenuEvent(QContextMenuEvent *pEvent);
     99
    97100    /** Returns position for passed @a indicatorType. */
    98101    int indicatorPosition(IndicatorType indicatorType) const;
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