diff options
author | Stephan Binner <stephan.binner@basyskom.com> | 2017-05-30 22:22:22 +0200 |
---|---|---|
committer | Stephan Binner <stephan.binner@basyskom.com> | 2017-06-28 16:15:09 +0000 |
commit | 5ede5706a8b8052280981aa1d9c42999a24b74b5 (patch) | |
tree | 93240295ca4f9e21f3ce6c74748f04697c060c67 /examples/widgets/painting/affine | |
parent | fdbf400b27ff25f98a64879adeeb342931a84d9a (diff) |
Convert features.wheelevent to QT_CONFIG
Change-Id: I46083a9115c199d1ebe024ed5f64b160a27462f1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'examples/widgets/painting/affine')
-rw-r--r-- | examples/widgets/painting/affine/xform.cpp | 2 | ||||
-rw-r--r-- | examples/widgets/painting/affine/xform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/painting/affine/xform.cpp b/examples/widgets/painting/affine/xform.cpp index e48c101262..e47bc9d251 100644 --- a/examples/widgets/painting/affine/xform.cpp +++ b/examples/widgets/painting/affine/xform.cpp @@ -260,7 +260,7 @@ void XFormView::timerEvent(QTimerEvent *e) } } -#ifndef QT_NO_WHEELEVENT +#if QT_CONFIG(wheelevent) void XFormView::wheelEvent(QWheelEvent *e) { m_scale += e->delta() / qreal(600); diff --git a/examples/widgets/painting/affine/xform.h b/examples/widgets/painting/affine/xform.h index f2eed99b4f..1dce3b26da 100644 --- a/examples/widgets/painting/affine/xform.h +++ b/examples/widgets/painting/affine/xform.h @@ -125,7 +125,7 @@ signals: protected: void timerEvent(QTimerEvent *e) override; -#ifndef QT_NO_WHEELEVENT +#if QT_CONFIG(wheelevent) void wheelEvent(QWheelEvent *) override; #endif |