mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-10 04:44:52 +00:00
27 lines
491 B
C
27 lines
491 B
C
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
// Copyright (c) 2020-2021, The Monero Project.
|
||
|
|
||
|
#ifndef FEATHER_QRCODEWIDGET_H
|
||
|
#define FEATHER_QRCODEWIDGET_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
#include "qrcode/QrCode.h"
|
||
|
|
||
|
class QrCodeWidget : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit QrCodeWidget(QWidget *parent = nullptr);
|
||
|
void setQrCode(QrCode *qrCode);
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *event) override;
|
||
|
|
||
|
private:
|
||
|
QrCode *m_qrcode = nullptr;
|
||
|
};
|
||
|
|
||
|
#endif //FEATHER_QRCODEWIDGET_H
|