Resizeable QrCode

This commit is contained in:
tobtoht
2021-07-04 00:06:24 +02:00
parent 758b385aef
commit 1e30b1f4a1
9 changed files with 131 additions and 28 deletions
+2 -3
View File
@@ -7,6 +7,7 @@
#include <QDialog>
#include "qrcode/QrCode.h"
#include "widgets/QrCodeWidget.h"
namespace Ui {
class QrCodeDialog;
@@ -17,9 +18,8 @@ class QrCodeDialog : public QDialog
Q_OBJECT
public:
explicit QrCodeDialog(QWidget *parent, const QrCode &qrCode, const QString &title = "Qr Code");
explicit QrCodeDialog(QWidget *parent, QrCode *qrCode, const QString &title = "Qr Code");
~QrCodeDialog() override;
void setQrCode(const QrCode &qrCode);
private:
void copyImage();
@@ -29,5 +29,4 @@ private:
QPixmap m_pixmap;
};
#endif //FEATHER_QRCODEDIALOG_H