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

QPushButton that presents a text payload as a QR code action. More...

#include <qpushbuttonasqrcode.h>

Inheritance diagram for QPushButtonAsQRCode:
Collaboration diagram for QPushButtonAsQRCode:

Signals

void clicked (const QString &text)
 Emitted when the button is activated with the current text payload.

Public Member Functions

 QPushButtonAsQRCode (QString textToCopy="", QWidget *parent=nullptr)
 Construct a QPushButtonAsQRCode with an optional initial text.
auto getTextToCopy () const -> QString
 Return the stored text used for QR-code actions.
void setTextToCopy (const QString &value)
 Update the stored text used for QR-code actions.

Detailed Description

QPushButton that presents a text payload as a QR code action.

Definition at line 13 of file qpushbuttonasqrcode.h.

Constructor & Destructor Documentation

◆ QPushButtonAsQRCode()

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

Construct a QPushButtonAsQRCode with an optional initial text.

Parameters
textToCopyInitial text stored for QR-code use (may be empty).
parentOptional parent widget.

Member Function Documentation

◆ clicked

void QPushButtonAsQRCode::clicked ( const QString & text)
signal

Emitted when the button is activated with the current text payload.

Parameters
textThe stored text.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTextToCopy()

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

Return the stored text used for QR-code actions.

Returns
The current stored text.

◆ setTextToCopy()

void QPushButtonAsQRCode::setTextToCopy ( const QString & value)

Update the stored text used for QR-code actions.

Parameters
valueNew text to store.
Here is the call graph for this function:
Here is the caller graph for this function:

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