Changeset 78008 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 3, 2019 5:58:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollArea.cpp
r77923 r78008 18 18 /* Qt includes: */ 19 19 #include <QGraphicsScene> 20 #include <QGraphicsView> 20 21 21 22 /* GUI includes: */ … … 149 150 layoutWidgets(); 150 151 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) 153 157 { 154 158 QWheelEvent *pWheelEvent = static_cast<QWheelEvent*>(pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.