MCPcopy Create free account
hub / github.com/KDAB/codebrowser / OverLoadTest

Class OverLoadTest

tests/testqt.cc:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95class OverLoadTest : public QObject {
96 Q_OBJECT
97signals:
98 void ovr(int = 4);
99 void ovr(const QString &);
100 void ovr(const QString &, int);
101
102public slots:
103 void doThings() {
104 connect(this, SIGNAL(ovr()), this, SLOT(doThings()));
105 connect(this, SIGNAL(ovr(int)), this, SLOT(doThings()));
106 connect(this, SIGNAL(ovr(QString)), this, SLOT(doThings()));
107 connect(this, SIGNAL(ovr(QString, int)), this, SLOT(doThings()));
108 connect(this, SIGNAL(ovr(QString*)), this, SLOT(doThings())); //error on purpose
109 }
110};
111
112class OverrideTest : public OverLoadTest {
113signals:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected