VirtualBox

Changeset 78008 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 3, 2019 5:58:12 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9373: Handle only events sent to required object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollArea.cpp

    r77923 r78008  
    1818/* Qt includes: */
    1919#include <QGraphicsScene>
     20#include <QGraphicsView>
    2021
    2122/* GUI includes: */
     
    149150        layoutWidgets();
    150151
    151     /* Handle redirected wheel events: */
    152     if (pEvent->type() == QEvent::Wheel)
     152    /* Handle wheel events for first scene view if set: */
     153    if (   scene()
     154        && !scene()->views().isEmpty()
     155        && pObject == scene()->views().first()
     156        && pEvent->type() == QEvent::Wheel)
    153157    {
    154158        QWheelEvent *pWheelEvent = static_cast<QWheelEvent*>(pEvent);
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