QPushButton that stores a text payload and emits it when activated.
More...
#include <qpushbuttonwithclipboard.h>
|
| void | clicked (const QString &text) |
| | Emitted when the button is activated with the stored text.
|
QPushButton that stores a text payload and emits it when activated.
Definition at line 13 of file qpushbuttonwithclipboard.h.
◆ QPushButtonWithClipboard()
| QPushButtonWithClipboard::QPushButtonWithClipboard |
( |
QString | textToCopy = "", |
|
|
QWidget * | parent = nullptr ) |
|
explicit |
Construct a QPushButtonWithClipboard with an optional initial text.
- Parameters
-
| textToCopy | Initial text to store and emit on activation. |
| parent | Optional parent widget. |
◆ clicked
| void QPushButtonWithClipboard::clicked |
( |
const QString & | text | ) |
|
|
signal |
Emitted when the button is activated with the stored text.
- Parameters
-
| text | The stored text associated with this button. |
◆ getTextToCopy()
| auto QPushButtonWithClipboard::getTextToCopy |
( |
| ) |
const -> QString |
|
nodiscard |
Return the stored text used for copying.
- Returns
- The current stored text.
◆ setTextToCopy()
| void QPushButtonWithClipboard::setTextToCopy |
( |
const QString & | value | ) |
|
Update the stored text used for copying.
- Parameters
-
| value | The new text to store. |
The documentation for this class was generated from the following file: