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

Method qrCodeButtonSetAndGetRoundtrip

tests/auto/ui/tst_ui.cpp:319–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void tst_ui::qrCodeButtonSetAndGetRoundtrip() {
320 QPushButtonAsQRCode btn;
321 QString text = "otpauth://totp/Example?secret=JBSWY3DPEHPK3PXP";
322 btn.setTextToCopy(text);
323 QCOMPARE(btn.getTextToCopy(), text);
324}
325
326void tst_ui::qrCodeButtonClickEmitsSignal() {
327 QPushButtonAsQRCode btn("somedata");

Callers

nothing calls this directly

Calls 2

setTextToCopyMethod · 0.45
getTextToCopyMethod · 0.45

Tested by

no test coverage detected