// Copyright 2019-2021 The Hush developers // Released under the GPLv3 #ifndef QRCODELABEL_H #define QRCODELABEL_H #include "precompiled.h" class QRCodeLabel : public QLabel { Q_OBJECT public: explicit QRCodeLabel(QWidget *parent = nullptr); virtual QSize sizeHint() const; void setQrcodeString(QString address); QPixmap scaledPixmap() const; public slots: void resizeEvent(QResizeEvent *); private: QString str; }; #endif // QRCODELABEL_H