aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qt-keywords/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qt-keywords/main.cpp')
-rw-r--r--tests/qt-keywords/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/qt-keywords/main.cpp b/tests/qt-keywords/main.cpp
new file mode 100644
index 00000000..4c01592c
--- /dev/null
+++ b/tests/qt-keywords/main.cpp
@@ -0,0 +1,25 @@
+#include <QtCore/QObject>
+#include <QtCore/QString>
+
+class MyObj : public QObject
+{
+public slots:
+ void slot1();
+
+public Q_SLOTS:
+ void slot2();
+signals:
+ void signal1();
+Q_SIGNALS:
+ void signal2();
+public:
+ Q_SLOT void slot3();
+ Q_SIGNAL void signal3();
+ void test()
+ {
+ emit signal1();
+ QList<int> l;
+ foreach(int i, l) {}
+ }
+};
+