|
QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
|
Stylish widget to allow copying of password and account details. More...
#include <qpushbuttonwithclipboard.h>
Signals | |
| void | clicked (const QString &) |
Public Member Functions | |
| QPushButtonWithClipboard (QString textToCopy="", QWidget *parent=nullptr) | |
| QPushButtonWithClipboard::QPushButtonWithClipboard basic constructor. | |
| auto | getTextToCopy () const -> QString |
| QPushButtonWithClipboard::getTextToCopy returns the text of associated text field. | |
| void | setTextToCopy (const QString &value) |
| QPushButtonWithClipboard::setTextToCopy sets text from associated text field. | |
Stylish widget to allow copying of password and account details.
A QPushButton subclass that stores a text payload and emits it when activated.
The button is intended for copying or emitting password/account details and toggles between default and pushed icon states. Construct a QPushButtonWithClipboard and initialize the stored text.
| textToCopy | Initial text to store and emit when the button is activated. |
| parent | Optional parent widget. Retrieve the stored text used for copying or emission. |
| value | The new text to store. Emitted when the button is activated with its associated text. |
| text | The stored text associated with this button. Restore the button's icon to its default appearance. Handle the button's clicked/pressed state and emit the stored text when appropriate. |
| checked | Whether the button is in the pressed/checked state. |
Definition at line 52 of file qpushbuttonwithclipboard.h.
|
explicit |
QPushButtonWithClipboard::QPushButtonWithClipboard basic constructor.
| textToCopy | the text to paste into the clipboard |
| parent | the parent window |
Definition at line 15 of file qpushbuttonwithclipboard.cpp.
|
signal |
|
nodiscard |
QPushButtonWithClipboard::getTextToCopy returns the text of associated text field.
Definition at line 32 of file qpushbuttonwithclipboard.cpp.
| void QPushButtonWithClipboard::setTextToCopy | ( | const QString & | value | ) |
QPushButtonWithClipboard::setTextToCopy sets text from associated text field.
| value | QString text to be copied |
Definition at line 41 of file qpushbuttonwithclipboard.cpp.