|
QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
|
Stylish widget to display the field as QR Code. More...
#include <qpushbuttonasqrcode.h>
Signals | |
| void | clicked (const QString &) |
Public Member Functions | |
| QPushButtonAsQRCode (QString textToCopy="", QWidget *parent=nullptr) | |
| QPushButtonAsQRCode::QPushButtonAsQRCode basic constructor. | |
| auto | getTextToCopy () const -> QString |
| QPushButtonAsQRCode::getTextToCopy returns the text of associated text field. | |
| void | setTextToCopy (const QString &value) |
| QPushButtonAsQRCode::setTextToCopy sets text from associated text field. | |
Stylish widget to display the field as QR Code.
Stylish QPushButton that represents a field as a QR code and holds a text payload to copy or transmit. Create a QPushButton configured to present text as a QR-code-related action.
| textToCopy | Initial text stored for copying or QR-code use (may be empty). |
| parent | Optional parent widget. Return the stored text used for copy or QR-code actions. |
| value | New text to store. Emitted when the button is activated, delivering the current text payload. |
| text | The current stored text. Reset the button's icon to its default appearance. Handle a change/click event reported as a boolean state. |
| checked | True if the button is in the checked/active state, false otherwise. |
Definition at line 49 of file qpushbuttonasqrcode.h.
|
explicit |
QPushButtonAsQRCode::QPushButtonAsQRCode basic constructor.
| textToCopy | the text to display as qrcode |
| parent | the parent window |
Definition at line 15 of file qpushbuttonasqrcode.cpp.
|
signal |
|
nodiscard |
QPushButtonAsQRCode::getTextToCopy returns the text of associated text field.
Definition at line 29 of file qpushbuttonasqrcode.cpp.
| void QPushButtonAsQRCode::setTextToCopy | ( | const QString & | value | ) |
QPushButtonAsQRCode::setTextToCopy sets text from associated text field.
| value | QString text to be copied |
Definition at line 38 of file qpushbuttonasqrcode.cpp.