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