14 : QPushButton(parent), textToCopy(textToCopy),
15 iconEdit(QIcon::fromTheme(
"qrcode", QIcon(
":/icons/qrcode.svg"))) {
17 connect(
this, SIGNAL(
clicked(
bool)),
this, SLOT(buttonClicked(
bool)));
40void QPushButtonAsQRCode::buttonClicked(
bool) { emit
clicked(textToCopy); }
46void QPushButtonAsQRCode::changeIconDefault() { this->setIcon(iconEdit); }