Warning, /sdk/clazy/tests/old-style-connect/usingnamespace.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 #include <QtCore/QObject> 0002 0003 namespace Foo2 { 0004 class MyObj : public QObject 0005 { 0006 Q_OBJECT 0007 public: 0008 0009 public Q_SLOTS: 0010 void slot1() {} 0011 void slot2() {} 0012 Q_SIGNALS: 0013 void signal1(); 0014 }; 0015 0016 } 0017 0018 using namespace Foo2; 0019 0020 void foo1() 0021 { 0022 Foo2::MyObj *o1 = new Foo2::MyObj(); 0023 QObject::connect(o1, &MyObj::signal1, o1, &MyObj::slot1); // Warning 0024 } 0025 0026 int main() { return 0; } 0027 0028 #if QT_VERSION_MAJOR == 5 0029 #include "usingnamespace.qt5.moc_" 0030 #else 0031 #include "usingnamespace.qt6.moc_" 0032 #endif