QPushButton that presents a text payload as a QR code action.
More...
#include <qpushbuttonasqrcode.h>
|
| void | clicked (const QString &text) |
| | Emitted when the button is activated with the current text payload.
|
|
| void | buttonClicked (bool checked) |
| | Connected to QPushButton::clicked(bool); re-emits the overload carrying the stored text so receivers do not need to look it up.
|
|
| QString | textToCopy |
| | Text to be rendered as a QR code; set by the owning panel.
|
| QIcon | iconEdit |
| | The qrcode icon shown on the button.
|
QPushButton that presents a text payload as a QR code action.
The button is icon-only (theme icon qrcode) and carries the text of the field it sits next to. It does not render the QR code itself: on activation it re-emits clicked(const QString&) with the stored text. The owning PasswordDisplayPanel passes that on, and QtPass::showTextAsQRCode() opens the QR dialog.
Definition at line 24 of file qpushbuttonasqrcode.h.
◆ QPushButtonAsQRCode()
| QPushButtonAsQRCode::QPushButtonAsQRCode |
( |
QString | textToCopy = "", |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Construct a QPushButtonAsQRCode with an optional initial text.
- Parameters
-
| textToCopy | Initial text stored for QR-code use (may be empty). |
| parent | Optional parent widget. |
Definition at line 11 of file qpushbuttonasqrcode.cpp.
◆ buttonClicked()
| void QPushButtonAsQRCode::buttonClicked |
( |
bool | checked | ) |
|
|
private |
Connected to QPushButton::clicked(bool); re-emits the overload carrying the stored text so receivers do not need to look it up.
- Parameters
-
| checked | Unused; the button is not checkable. |
Definition at line 31 of file qpushbuttonasqrcode.cpp.
◆ clicked
| void QPushButtonAsQRCode::clicked |
( |
const QString & | text | ) |
|
|
signal |
Emitted when the button is activated with the current text payload.
- Parameters
-
◆ getTextToCopy()
| auto QPushButtonAsQRCode::getTextToCopy |
( |
| ) |
const -> QString |
|
nodiscard |
Return the stored text used for QR-code actions.
- Returns
- The current stored text.
Definition at line 23 of file qpushbuttonasqrcode.cpp.
◆ setTextToCopy()
| void QPushButtonAsQRCode::setTextToCopy |
( |
const QString & | value | ) |
|
◆ iconEdit
| QIcon QPushButtonAsQRCode::iconEdit |
|
private |
◆ textToCopy
| QString QPushButtonAsQRCode::textToCopy |
|
private |
The documentation for this class was generated from the following files: