summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/plugin.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-20 13:34:11 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-05-20 13:34:11 (GMT)
commitac5fceafb00a2f007239f9b0fc89fe01a2064d62 (patch)
treedbce8727cf7599c07e8151e7993b59cd5f3e40a6 /examples/statemachine/tankgame/plugin.h
parent5504a102e9f608fed7377332b8de7b823cf22b85 (diff)
downloadQt-ac5fceafb00a2f007239f9b0fc89fe01a2064d62.zip
Qt-ac5fceafb00a2f007239f9b0fc89fe01a2064d62.tar.gz
Qt-ac5fceafb00a2f007239f9b0fc89fe01a2064d62.tar.bz2
compile with -qtnamespace, clean up the example .pro files
Diffstat (limited to 'examples/statemachine/tankgame/plugin.h')
-rw-r--r--examples/statemachine/tankgame/plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/statemachine/tankgame/plugin.h b/examples/statemachine/tankgame/plugin.h
index 2b48d43..006ad78 100644
--- a/examples/statemachine/tankgame/plugin.h
+++ b/examples/statemachine/tankgame/plugin.h
@@ -3,7 +3,9 @@
#include <QtPlugin>
+QT_BEGIN_NAMESPACE
class QState;
+QT_END_NAMESPACE
class Plugin
{
public:
@@ -12,6 +14,8 @@ public:
virtual QState *create(QState *parentState, QObject *tank) = 0;
};
+QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(Plugin, "TankPlugin")
+QT_END_NAMESPACE
#endif