You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
607 B
33 lines
607 B
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
|
|
|
#ifndef WOWLET_QRCODEDIALOG_H
|
|
#define WOWLET_QRCODEDIALOG_H
|
|
#include <QDialog>
|
|
|
|
#include "qrcode/QrCode.h"
|
|
|
|
namespace Ui {
|
|
class QrCodeDialog;
|
|
}
|
|
|
|
class QrCodeDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit QrCodeDialog(QWidget *parent, const QrCode &qrCode, const QString &title = "Qr Code");
|
|
~QrCodeDialog() override;
|
|
void setQrCode(const QrCode &qrCode);
|
|
|
|
private:
|
|
void copyImage();
|
|
void saveImage();
|
|
|
|
Ui::QrCodeDialog *ui;
|
|
QPixmap m_pixmap;
|
|
};
|
|
|
|
|
|
#endif //WOWLET_QRCODEDIALOG_H
|