14 : QPushButton(parent), textToCopy(textToCopy),
15 iconEdit(QIcon::fromTheme(
"edit-copy", QIcon(
":/icons/edit-copy.svg"))),
17 QIcon::fromTheme(
"document-new", QIcon(
":/icons/document-new.svg"))) {
19 connect(
this, SIGNAL(
clicked(
bool)),
this, SLOT(buttonClicked(
bool)));
42void QPushButtonWithClipboard::buttonClicked(
bool) {
43 setIcon(iconEditPushed);
44 QTimer::singleShot(500,
this, SLOT(changeIconDefault()));
52void QPushButtonWithClipboard::changeIconDefault() { this->setIcon(iconEdit); }