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.
24 lines
432 B
24 lines
432 B
6 years ago
|
#ifndef QRCODELABEL_H
|
||
|
#define QRCODELABEL_H
|
||
|
|
||
|
#include "precompiled.h"
|
||
|
|
||
|
class QRCodeLabel : public QLabel
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit QRCodeLabel(QWidget *parent = 0);
|
||
|
virtual QSize sizeHint() const;
|
||
|
|
||
|
void setAddress(QString address);
|
||
|
QPixmap scaledPixmap() const;
|
||
|
public slots:
|
||
|
void resizeEvent(QResizeEvent *);
|
||
|
|
||
|
private:
|
||
|
QString address;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // QRCODELABEL_H
|