MCPcopy Create free account
hub / github.com/IJHack/QtPass / qrCodeButtonClickAfterSetTextCarriesNewText

Method qrCodeButtonClickAfterSetTextCarriesNewText

tests/auto/ui/tst_ui.cpp:342–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void 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

Callers

nothing calls this directly

Calls 1

setTextToCopyMethod · 0.45

Tested by

no test coverage detected