2020-10-07 11:36:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 11:36:04 +01:00
|
|
|
|
2021-03-30 10:52:29 +01:00
|
|
|
#ifndef WOWLET_QRCODEDIALOG_H
|
|
|
|
#define WOWLET_QRCODEDIALOG_H
|
2020-10-07 11:36:04 +01:00
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "qrcode/QrCode.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class QrCodeDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class QrCodeDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-10-16 04:05:05 +01:00
|
|
|
explicit QrCodeDialog(QWidget *parent, const QrCode &qrCode, const QString &title = "Qr Code");
|
2020-10-07 11:36:04 +01:00
|
|
|
~QrCodeDialog() override;
|
2020-10-16 04:05:05 +01:00
|
|
|
void setQrCode(const QrCode &qrCode);
|
2020-10-07 11:36:04 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void copyImage();
|
|
|
|
void saveImage();
|
|
|
|
|
|
|
|
Ui::QrCodeDialog *ui;
|
|
|
|
QPixmap m_pixmap;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-03-30 10:52:29 +01:00
|
|
|
#endif //WOWLET_QRCODEDIALOG_H
|