blob: 5ee436c0f1412d9cfa9fef8d47d7cccde2a05bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef QPUSHBUTTONASQRCODE_H_
#define QPUSHBUTTONASQRCODE_H_
#include <QPushButton>
/*!
\class QPushButtonAsQRCode
\brief Stylish widget to display the field as QR Code
*/
class QWidget;
class QPushButtonAsQRCode : public QPushButton {
Q_OBJECT
public:
explicit QPushButtonAsQRCode(const QString &textToCopy = "",
QWidget *parent = nullptr);
QString getTextToCopy() const;
void setTextToCopy(const QString &value);
signals:
void clicked(QString);
private slots:
void changeIconDefault();
void buttonClicked(bool);
private:
QString textToCopy;
QIcon iconEdit;
};
#endif // QPUSHBUTTONASQRCODE_H_
|