summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/plugin.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-04-30 07:43:13 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-04-30 07:43:13 (GMT)
commit0d33e6e464c324d1b43b08ce7ac0dcd4c216d17e (patch)
tree3e56d4d54a996ee5264c009d9976b2731bbef509 /examples/statemachine/errorstate/plugin.h
parent0f8de3b0b4ccccbeba97999635eb5716f561fb30 (diff)
downloadQt-0d33e6e464c324d1b43b08ce7ac0dcd4c216d17e.zip
Qt-0d33e6e464c324d1b43b08ce7ac0dcd4c216d17e.tar.gz
Qt-0d33e6e464c324d1b43b08ce7ac0dcd4c216d17e.tar.bz2
Make design better. Remove the Tank interface. This is now an implicit interface
based on the meta-object system.
Diffstat (limited to 'examples/statemachine/errorstate/plugin.h')
-rw-r--r--examples/statemachine/errorstate/plugin.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/statemachine/errorstate/plugin.h b/examples/statemachine/errorstate/plugin.h
index 69b9574..2b48d43 100644
--- a/examples/statemachine/errorstate/plugin.h
+++ b/examples/statemachine/errorstate/plugin.h
@@ -4,13 +4,12 @@
#include <QtPlugin>
class QState;
-class Tank;
class Plugin
{
public:
virtual ~Plugin() {}
- virtual QState *create(QState *parentState, Tank *tank) = 0;
+ virtual QState *create(QState *parentState, QObject *tank) = 0;
};
Q_DECLARE_INTERFACE(Plugin, "TankPlugin")