summaryrefslogtreecommitdiffstats
path: root/src/widgets/statemachine/qbasicmouseeventtransition.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-08-30 12:23:53 +0200
committerLars Knoll <lars.knoll@qt.io>2016-10-11 06:05:09 +0000
commit8d330f55ba26600b93dda9fdcfacb571cfd1e94b (patch)
tree7bd9a2facc8b72ded18b55f7351cd40395bb33cd /src/widgets/statemachine/qbasicmouseeventtransition.cpp
parent267dd9133d76d466c0f940e7286dc9ba03bac18e (diff)
Fix build with statemachine feature disabled
The sources of the state machine are excluded completely at the build system level instead of littering them with #ifs. All remaining usages of QT_NO_STATEMACHINE are converted to QT_CONFIG(statemachine) or a QT_REQUIRE_CONFIG(statemachine). Also make the qeventtransition feature dependent on statemachine. Change-Id: Ib05c7ca263a02042523fff8f794fa87342df1069 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/widgets/statemachine/qbasicmouseeventtransition.cpp')
-rw-r--r--src/widgets/statemachine/qbasicmouseeventtransition.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/widgets/statemachine/qbasicmouseeventtransition.cpp b/src/widgets/statemachine/qbasicmouseeventtransition.cpp
index 39c69b95f5..f404c33a2f 100644
--- a/src/widgets/statemachine/qbasicmouseeventtransition.cpp
+++ b/src/widgets/statemachine/qbasicmouseeventtransition.cpp
@@ -38,9 +38,6 @@
****************************************************************************/
#include "qbasicmouseeventtransition_p.h"
-
-#ifndef QT_NO_STATEMACHINE
-
#include <QtGui/qevent.h>
#include <QtGui/qpainterpath.h>
#include <qdebug.h>
@@ -209,5 +206,3 @@ void QBasicMouseEventTransition::onTransition(QEvent *)
QT_END_NAMESPACE
#include "moc_qbasicmouseeventtransition_p.cpp"
-
-#endif //QT_NO_STATEMACHINE