Debian Codegraph @

tests/old-style-connect/usingnamespace.cpp.fixed.expected

raw
1 #include <QtCore/QObject>
2
3 namespace Foo2 {
4 class MyObj : public QObject
5 {
6 Q_OBJECT
7 public:
8
9 public Q_SLOTS:
10 void slot1() {}
11 void slot2() {}
12 Q_SIGNALS:
13 void signal1();
14 };
15
16 }
17
18 using namespace Foo2;
19
20 void foo1()
21 {
22 Foo2::MyObj *o1 = new Foo2::MyObj();
23 QObject::connect(o1, &MyObj::signal1, o1, &MyObj::slot1); // Warning
24 }
25
26 int main() { return 0; }
27
28 #if QT_VERSION_MAJOR == 5
29 #include "usingnamespace.qt5.moc_"
30 #elif Q_MOC_OUTPUT_REVISION == 69
31 #include "usingnamespace.qt6.moc_69"
32 #else
33 #include "usingnamespace.qt6.moc_"
34 #endif