mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-09 12:29:44 +00:00
28 lines
590 B
C++
28 lines
590 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 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;
|
|
int heightForWidth(int w) const override;
|
|
bool hasHeightForWidth() const override;
|
|
|
|
private:
|
|
QrCode *m_qrcode = nullptr;
|
|
};
|
|
|
|
#endif //FEATHER_QRCODEWIDGET_H
|