diff options
author | Stephan Binner <stephan.binner@basyskom.com> | 2017-07-23 11:31:32 +0200 |
---|---|---|
committer | Stephan Binner <stephan.binner@basyskom.com> | 2017-08-15 05:10:10 +0000 |
commit | e6fad35155a25a932386ad6f8421efd74404ac7f (patch) | |
tree | 9bb2e2c71d5b2ea305937cb5046b6e26141bab18 /src/widgets/statemachine/qguistatemachine.cpp | |
parent | 306071e50eac8290d234caab90985ddf705a5fc6 (diff) |
Convert features.graphicsview to QT_[REQUIRE_]CONFIG
Change-Id: I1083097802772624e5d414678b4612308683a56f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/statemachine/qguistatemachine.cpp')
-rw-r--r-- | src/widgets/statemachine/qguistatemachine.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/widgets/statemachine/qguistatemachine.cpp b/src/widgets/statemachine/qguistatemachine.cpp index 543011b754..b452c63551 100644 --- a/src/widgets/statemachine/qguistatemachine.cpp +++ b/src/widgets/statemachine/qguistatemachine.cpp @@ -40,7 +40,10 @@ #include <QtCore/qstatemachine.h> #include <private/qstatemachine_p.h> #include <QtGui/qevent.h> +#include <QtWidgets/qtwidgetsglobal.h> +#if QT_CONFIG(graphicsview) #include <QtWidgets/qgraphicssceneevent.h> +#endif QT_BEGIN_NAMESPACE @@ -285,7 +288,7 @@ static QEvent *cloneEvent(QEvent *e) case QEvent::ZeroTimerEvent: Q_ASSERT_X(false, "cloneEvent()", "not implemented"); break; -#ifndef QT_NO_GRAPHICSVIEW +#if QT_CONFIG(graphicsview) case QEvent::GraphicsSceneMouseMove: case QEvent::GraphicsSceneMousePress: case QEvent::GraphicsSceneMouseRelease: @@ -396,7 +399,7 @@ static QEvent *cloneEvent(QEvent *e) case QEvent::FutureCallOut: Q_ASSERT_X(false, "cloneEvent()", "not implemented"); break; -#ifndef QT_NO_GRAPHICSVIEW +#if QT_CONFIG(graphicsview) case QEvent::GraphicsSceneResize: { QGraphicsSceneResizeEvent *re = static_cast<QGraphicsSceneResizeEvent*>(e); QGraphicsSceneResizeEvent *re2 = new QGraphicsSceneResizeEvent(); |