diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2019-05-01 05:18:54 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2019-05-02 12:18:18 +0000 |
commit | fc929842c20ac81869a33edce765e389a46e6c0c (patch) | |
tree | 2f0fb72ba45df61593e4917e67188240ff8ea2e1 /src/qt/receiverequestdialog.h | |
parent | 77851ab682bf94f78874a245919bcc4b79dc054e (diff) |
GUI: Move QRImageWidget to its own file-pair
Diffstat (limited to 'src/qt/receiverequestdialog.h')
-rw-r--r-- | src/qt/receiverequestdialog.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/qt/receiverequestdialog.h b/src/qt/receiverequestdialog.h index 0e62c26fd3..a6e1a2af16 100644 --- a/src/qt/receiverequestdialog.h +++ b/src/qt/receiverequestdialog.h @@ -8,42 +8,11 @@ #include <qt/walletmodel.h> #include <QDialog> -#include <QImage> -#include <QLabel> -#include <QPainter> namespace Ui { class ReceiveRequestDialog; } -QT_BEGIN_NAMESPACE -class QMenu; -QT_END_NAMESPACE - -/* Label widget for QR code. This image can be dragged, dropped, copied and saved - * to disk. - */ -class QRImageWidget : public QLabel -{ - Q_OBJECT - -public: - explicit QRImageWidget(QWidget *parent = nullptr); - bool setQR(const QString& data, const QString& text = ""); - QImage exportImage(); - -public Q_SLOTS: - void saveImage(); - void copyImage(); - -protected: - virtual void mousePressEvent(QMouseEvent *event); - virtual void contextMenuEvent(QContextMenuEvent *event); - -private: - QMenu *contextMenu; -}; - class ReceiveRequestDialog : public QDialog { Q_OBJECT |