summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_moc_macro_target
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cmake/test_moc_macro_target')
-rw-r--r--tests/auto/cmake/test_moc_macro_target/interface/myinterface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h b/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h
index 2558406486..becfe3037c 100644
--- a/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h
+++ b/tests/auto/cmake/test_moc_macro_target/interface/myinterface.h
@@ -34,11 +34,17 @@
#ifndef MYINTERFACE_H
#define MYINTERFACE_H
+#include <qglobal.h>
+
class MyInterface
{
};
+QT_BEGIN_NAMESPACE
+
Q_DECLARE_INTERFACE(MyInterface, "org.cmake.example.MyInterface")
+QT_END_NAMESPACE
+
#endif