aboutsummaryrefslogtreecommitdiffstats
path: root/tests/connect-by-name/main.cpp
blob: 926764477c75c9fe5200839ad462cba6d6b058e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
{
}