summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannis Voelker <jannis.voelker@basyskom.com>2018-03-08 09:09:38 +0100
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2018-03-08 13:57:18 +0000
commit7db9fd377b5a6d3beedff577b32bda48d551aa58 (patch)
treea82558cfef385c1b8ba7d5ce6feea2c2b26a389f
parentda7e82a50a9facdf95e5fa1687b2bac3b6136c37 (diff)
Move Q_DECLARE_METATYPE between the include guards
The header of the water pump example demo server was declaring a metatype outside of the include guards. Change-Id: Icba6b3d43e9fd29badefec77df74a9d1c199040b Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r--examples/opcua/waterpump/qml-hmi/opcuamachinebackend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opcua/waterpump/qml-hmi/opcuamachinebackend.h b/examples/opcua/waterpump/qml-hmi/opcuamachinebackend.h
index 5bfaa91..8d2d714 100644
--- a/examples/opcua/waterpump/qml-hmi/opcuamachinebackend.h
+++ b/examples/opcua/waterpump/qml-hmi/opcuamachinebackend.h
@@ -149,6 +149,6 @@ private:
QStringList m_backends;
};
-#endif // OPCUAMACHINEBACKEND_H
-
Q_DECLARE_METATYPE(OpcUaMachineBackend::MachineState)
+
+#endif // OPCUAMACHINEBACKEND_H