summaryrefslogtreecommitdiffstats
path: root/examples/threads/mandelbrot/mandelbrotwidget.cpp
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2012-12-02 22:53:25 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-05 13:27:27 +0100
commitf775f6dd887e1744816d1320fd50092df93f0371 (patch)
tree727adeea004b5d20a3e308389c2327c7a4db5a9d /examples/threads/mandelbrot/mandelbrotwidget.cpp
parent422b8dd24ec99caed2a22735f53ffbef110a35ad (diff)
Fix compile with -DQT_NO_WHEELEVENT
Change-Id: Icc345e2a361fc233d7debfa88bef2a3a8375fa8f Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'examples/threads/mandelbrot/mandelbrotwidget.cpp')
-rw-r--r--examples/threads/mandelbrot/mandelbrotwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/threads/mandelbrot/mandelbrotwidget.cpp b/examples/threads/mandelbrot/mandelbrotwidget.cpp
index c1ec029548..3a10a7a726 100644
--- a/examples/threads/mandelbrot/mandelbrotwidget.cpp
+++ b/examples/threads/mandelbrot/mandelbrotwidget.cpp
@@ -162,6 +162,7 @@ void MandelbrotWidget::keyPressEvent(QKeyEvent *event)
}
//! [11]
+#ifndef QT_NO_WHEELEVENT
//! [12]
void MandelbrotWidget::wheelEvent(QWheelEvent *event)
{
@@ -170,6 +171,7 @@ void MandelbrotWidget::wheelEvent(QWheelEvent *event)
zoom(pow(ZoomInFactor, numSteps));
}
//! [12]
+#endif
//! [13]
void MandelbrotWidget::mousePressEvent(QMouseEvent *event)