| 331 | } |
| 332 | |
| 333 | void tst_ui::qrCodeButtonClickSignalCarriesText() { |
| 334 | QPushButtonAsQRCode btn("payload"); |
| 335 | QSignalSpy spy(&btn, &QPushButtonAsQRCode::clicked); |
| 336 | btn.click(); |
| 337 | QCOMPARE(spy.count(), 1); |
| 338 | QList<QVariant> args = spy.takeFirst(); |
| 339 | QCOMPARE(args.at(0).toString(), QString("payload")); |
| 340 | } |
| 341 | |
| 342 | void tst_ui::qrCodeButtonClickAfterSetTextCarriesNewText() { |
| 343 | QPushButtonAsQRCode btn("old"); |
nothing calls this directly
no outgoing calls
no test coverage detected