☰
Debian Codegraph
@
1.17.1-1
/
/
tests
/
connect-non-signal
/
bug376137.cpp
☽
☼
tests/connect-non-signal/bug376137.cpp
code
plain
raw
LGPL-2+
2015-2020 Sergio Martins <
[email protected]
>; 2015, 2016, 2019-2020 Klarälvdalens Datakonsult AB, a KDAB Group company,
[email protected]
; 2015 Nyall Dawson <
[email protected]
>; 2015 Mathias Hasselmann <
[email protected]
>; 2015 Albert Astals Cid <
[email protected]
>; 2019 Christian Gagneraud <
[email protected]
>; 2019 Jean-Michaël Celerier <
[email protected]
>; 2019 Nikolai Kosjar <
[email protected]
>; 2020 Lucie Gerard <
[email protected]
>; 2020 The Qt Company Ltd.
debian/copyright
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
};