summaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/chip/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/chip/view.cpp')
-rw-r--r--examples/widgets/graphicsview/chip/view.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/graphicsview/chip/view.cpp b/examples/widgets/graphicsview/chip/view.cpp
index cb83175744..4b7e6c2ed8 100644
--- a/examples/widgets/graphicsview/chip/view.cpp
+++ b/examples/widgets/graphicsview/chip/view.cpp
@@ -50,6 +50,7 @@
#endif
#include <qmath.h>
+#ifndef QT_NO_WHEELEVENT
void GraphicsView::wheelEvent(QWheelEvent *e)
{
if (e->modifiers() & Qt::ControlModifier) {
@@ -62,6 +63,7 @@ void GraphicsView::wheelEvent(QWheelEvent *e)
QGraphicsView::wheelEvent(e);
}
}
+#endif
View::View(const QString &name, QWidget *parent)
: QFrame(parent)