MCPcopy Create free account
hub / github.com/IJHack/QtPass / buttonClicked

Method buttonClicked

src/qpushbuttonwithclipboard.cpp:49–53  ·  view source on GitHub ↗

* @brief QPushButtonWithClipboard::buttonClicked handles clicked event by * emitting clicked(QString) with string provided to constructor */

Source from the content-addressed store, hash-verified

47 * emitting clicked(QString) with string provided to constructor
48 */
49void QPushButtonWithClipboard::buttonClicked(bool /*unused*/) {
50 setIcon(iconEditPushed);
51 QTimer::singleShot(500, this, &QPushButtonWithClipboard::changeIconDefault);
52 emit clicked(textToCopy);
53}
54
55/**
56 * @brief QPushButtonWithClipboard::changeIconDefault change the icon back to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected