Debian Codegraph @

tests/connect-non-signal/bug376137.cpp

raw
1 #include <QtCore/QObject>
2
3 class Foo : public QObject
4 {
5 Q_OBJECT
6 public:
7 Foo()
8 {
9 connect(this, static_cast<void (Foo::*)(int)>(&Foo::bar), [](int) {}); // OK
10 }
11
12 Q_SIGNALS:
13 void bar(int);
14 void bar(float);
15 };