2024-04-11 14:51:43 +08:00
|
|
|
#pragma once
|
2023-09-17 20:36:33 +08:00
|
|
|
|
|
|
|
#include <QQuickItem>
|
|
|
|
#include <QQuickPaintedItem>
|
|
|
|
#include <QPainter>
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
2024-02-27 12:23:24 +08:00
|
|
|
/**
|
|
|
|
* @brief The FluRectangle class
|
|
|
|
*/
|
2024-04-11 14:51:43 +08:00
|
|
|
class FluRectangle : public QQuickPaintedItem {
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY_AUTO(QColor, color)
|
|
|
|
Q_PROPERTY_AUTO(QList<int>, radius)
|
2023-09-17 20:36:33 +08:00
|
|
|
QML_NAMED_ELEMENT(FluRectangle)
|
|
|
|
public:
|
|
|
|
explicit FluRectangle(QQuickItem *parent = nullptr);
|
|
|
|
|
2024-04-11 14:51:43 +08:00
|
|
|
void paint(QPainter *painter) override;
|
2024-06-17 17:45:40 +08:00
|
|
|
};
|