Files
SilentDragonXLite/src/qrcodelabel.h
2023-02-20 15:39:41 +01:00

26 lines
510 B
C++

// Copyright 2019-2023 The Hush developers
// Released under the GPLv3
#ifndef QRCODELABEL_H
#define QRCODELABEL_H
#include "precompiled.h"
class QRCodeLabel : public QLabel
{
Q_OBJECT
public:
explicit QRCodeLabel(QWidget *parent = nullptr);
virtual QSize sizeHint() const;
void setQrcodeString(QString address);
QPixmap scaledPixmap() const;
public slots:
void resizeEvent(QResizeEvent *);
private:
QString str;
};
#endif // QRCODELABEL_H