mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
24 lines
488 B
C++
24 lines
488 B
C++
#ifndef FLURECTANGLE_H
|
|
#define FLURECTANGLE_H
|
|
|
|
#include <QQuickItem>
|
|
#include <QQuickPaintedItem>
|
|
#include <QPainter>
|
|
#include "stdafx.h"
|
|
|
|
/**
|
|
* @brief The FluRectangle class
|
|
*/
|
|
class FluRectangle : public QQuickPaintedItem
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY_AUTO(QColor,color)
|
|
Q_PROPERTY_AUTO(QList<int>,radius)
|
|
QML_NAMED_ELEMENT(FluRectangle)
|
|
public:
|
|
explicit FluRectangle(QQuickItem *parent = nullptr);
|
|
void paint(QPainter* painter) override;
|
|
};
|
|
|
|
#endif // FLURECTANGLE_H
|