QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
QPushButtonAsQRCode Class Reference

Stylish widget to display the field as QR Code. More...

#include <qpushbuttonasqrcode.h>

Inheritance diagram for QPushButtonAsQRCode:
Collaboration diagram for QPushButtonAsQRCode:

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.

Detailed Description

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.

Parameters
textToCopyInitial text stored for copying or QR-code use (may be empty).
parentOptional parent widget. Return the stored text used for copy or QR-code actions.
Returns
The current stored text. Update the stored text used for copy or QR-code actions.
Parameters
valueNew text to store. Emitted when the button is activated, delivering the current text payload.
textThe current stored text. Reset the button's icon to its default appearance. Handle a change/click event reported as a boolean state.
checkedTrue if the button is in the checked/active state, false otherwise.

Definition at line 49 of file qpushbuttonasqrcode.h.

Constructor & Destructor Documentation

◆ QPushButtonAsQRCode()

QPushButtonAsQRCode::QPushButtonAsQRCode ( QString textToCopy = "",
QWidget * parent = nullptr )
explicit

QPushButtonAsQRCode::QPushButtonAsQRCode basic constructor.

Parameters
textToCopythe text to display as qrcode
parentthe parent window

Definition at line 15 of file qpushbuttonasqrcode.cpp.

Member Function Documentation

◆ clicked

void QPushButtonAsQRCode::clicked ( const QString & )
signal

◆ getTextToCopy()

auto QPushButtonAsQRCode::getTextToCopy ( ) const -> QString
nodiscard

QPushButtonAsQRCode::getTextToCopy returns the text of associated text field.

Returns
QString textToCopy

Definition at line 29 of file qpushbuttonasqrcode.cpp.

◆ setTextToCopy()

void QPushButtonAsQRCode::setTextToCopy ( const QString & value)

QPushButtonAsQRCode::setTextToCopy sets text from associated text field.

Parameters
valueQString text to be copied

Definition at line 38 of file qpushbuttonasqrcode.cpp.


The documentation for this class was generated from the following files: