| 93 | |
| 94 | |
| 95 | class OverLoadTest : public QObject { |
| 96 | Q_OBJECT |
| 97 | signals: |
| 98 | void ovr(int = 4); |
| 99 | void ovr(const QString &); |
| 100 | void ovr(const QString &, int); |
| 101 | |
| 102 | public 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 | |
| 112 | class OverrideTest : public OverLoadTest { |
| 113 | signals: |
nothing calls this directly
no outgoing calls
no test coverage detected