From 8d330f55ba26600b93dda9fdcfacb571cfd1e94b Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 30 Aug 2016 12:23:53 +0200 Subject: 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 --- src/corelib/statemachine/qstate.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/corelib/statemachine/qstate.h') diff --git a/src/corelib/statemachine/qstate.h b/src/corelib/statemachine/qstate.h index 7a9dc9c132..33f84c2de0 100644 --- a/src/corelib/statemachine/qstate.h +++ b/src/corelib/statemachine/qstate.h @@ -44,10 +44,9 @@ #include #include -QT_BEGIN_NAMESPACE - +QT_REQUIRE_CONFIG(statemachine); -#ifndef QT_NO_STATEMACHINE +QT_BEGIN_NAMESPACE class QAbstractTransition; class QSignalTransition; @@ -130,8 +129,6 @@ private: Q_DECLARE_PRIVATE(QState) }; -#endif //QT_NO_STATEMACHINE - QT_END_NAMESPACE #endif -- cgit v1.2.3