2024-02-27 12:23:24 +08:00
|
|
|
#ifndef FLUQRCODEITEM_H
|
|
|
|
#define FLUQRCODEITEM_H
|
2023-08-08 15:44:10 +08:00
|
|
|
|
|
|
|
#include <QQuickItem>
|
|
|
|
#include <QQuickPaintedItem>
|
|
|
|
#include <QPainter>
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
2024-02-27 12:23:24 +08:00
|
|
|
/**
|
|
|
|
* @brief The FluQrCodeItem class
|
|
|
|
*/
|
|
|
|
class FluQrCodeItem : public QQuickPaintedItem
|
2023-08-08 15:44:10 +08:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY_AUTO(QString,text)
|
|
|
|
Q_PROPERTY_AUTO(QColor,color)
|
2023-08-14 18:10:37 +08:00
|
|
|
Q_PROPERTY_AUTO(QColor,bgColor)
|
2023-08-08 15:44:10 +08:00
|
|
|
Q_PROPERTY_AUTO(int,size);
|
2024-02-27 12:23:24 +08:00
|
|
|
QML_NAMED_ELEMENT(FluQrCodeItem)
|
2023-08-08 15:44:10 +08:00
|
|
|
public:
|
2024-02-27 12:23:24 +08:00
|
|
|
explicit FluQrCodeItem(QQuickItem *parent = nullptr);
|
2023-08-08 15:44:10 +08:00
|
|
|
void paint(QPainter* painter) override;
|
|
|
|
};
|
|
|
|
|
2024-02-27 12:23:24 +08:00
|
|
|
#endif // FLUQRCODEITEM_H
|