summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/namespaced-flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/tools/moc/namespaced-flags.h')
-rw-r--r--tests/auto/tools/moc/namespaced-flags.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/tools/moc/namespaced-flags.h b/tests/auto/tools/moc/namespaced-flags.h
index 2b63ed0ae1..9448176218 100644
--- a/tests/auto/tools/moc/namespaced-flags.h
+++ b/tests/auto/tools/moc/namespaced-flags.h
@@ -38,13 +38,14 @@
namespace Foo {
class Bar : public QObject {
Q_OBJECT
- Q_FLAGS( Flags )
Q_PROPERTY( Flags flags READ flags WRITE setFlags )
public:
explicit Bar( QObject * parent=0 ) : QObject( parent ), mFlags() {}
enum Flag { Read=1, Write=2 };
Q_DECLARE_FLAGS( Flags, Flag )
+ Q_FLAG(Flags)
+
void setFlags( Flags f ) { mFlags = f; }
Flags flags() const { return mFlags; }