aboutsummaryrefslogtreecommitdiffstats
path: root/tests/connect-by-name/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/connect-by-name/main.cpp')
-rw-r--r--tests/connect-by-name/main.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/connect-by-name/main.cpp b/tests/connect-by-name/main.cpp
new file mode 100644
index 00000000..92676447
--- /dev/null
+++ b/tests/connect-by-name/main.cpp
@@ -0,0 +1,25 @@
+#include <QtCore/QObject>
+
+class MyObj; // OK
+
+class MyObj : public QObject
+{
+public Q_SLOTS:
+ void on_foo_bar(); // Warn
+
+public:
+ void on_foo2_bar2(); // OK
+
+signals:
+ void on_foo3_bar3(); // OK
+};
+
+class MyObj; // OK
+
+void MyObj::on_foo_bar() // OK
+{
+}
+
+void MyObj::on_foo2_bar2() // OK
+{
+}