| 340 | } |
| 341 | |
| 342 | void tst_ui::qrCodeButtonClickAfterSetTextCarriesNewText() { |
| 343 | QPushButtonAsQRCode btn("old"); |
| 344 | btn.setTextToCopy("new"); |
| 345 | QSignalSpy spy(&btn, &QPushButtonAsQRCode::clicked); |
| 346 | btn.click(); |
| 347 | QCOMPARE(spy.count(), 1); |
| 348 | QList<QVariant> args = spy.takeFirst(); |
| 349 | QCOMPARE(args.at(0).toString(), QString("new")); |
| 350 | } |
| 351 | |
| 352 | // ---- QPushButtonShowPassword tests ---- |
| 353 |
nothing calls this directly
no test coverage detected