mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 16:45:24 +08:00
update
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
#ifndef FLUWATERMARK_H
|
||||
#define FLUWATERMARK_H
|
||||
#pragma once
|
||||
|
||||
#include <QQuickItem>
|
||||
#include <QQuickPaintedItem>
|
||||
@ -9,19 +8,17 @@
|
||||
/**
|
||||
* @brief The FluWatermark class
|
||||
*/
|
||||
class FluWatermark : public QQuickPaintedItem
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY_AUTO(QString,text)
|
||||
Q_PROPERTY_AUTO(QPoint,gap)
|
||||
Q_PROPERTY_AUTO(QPoint,offset);
|
||||
Q_PROPERTY_AUTO(QColor,textColor);
|
||||
Q_PROPERTY_AUTO(int,rotate);
|
||||
Q_PROPERTY_AUTO(int,textSize);
|
||||
class FluWatermark : public QQuickPaintedItem {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY_AUTO(QString, text)
|
||||
Q_PROPERTY_AUTO(QPoint, gap)
|
||||
Q_PROPERTY_AUTO(QPoint, offset);
|
||||
Q_PROPERTY_AUTO(QColor, textColor);
|
||||
Q_PROPERTY_AUTO(int, rotate);
|
||||
Q_PROPERTY_AUTO(int, textSize);
|
||||
QML_NAMED_ELEMENT(FluWatermark)
|
||||
public:
|
||||
explicit FluWatermark(QQuickItem *parent = nullptr);
|
||||
void paint(QPainter* painter) override;
|
||||
};
|
||||
|
||||
#endif // FLUWATERMARK_H
|
||||
void paint(QPainter *painter) override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user