From 78ee7258ceb49cd49b60e1e5ee2868f602575a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Mon, 17 Jun 2024 17:45:40 +0800 Subject: [PATCH] update --- src/FluRectangle.h | 2 +- src/FluentUI.cpp | 2 +- src/qmlcustomplot/grid.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FluRectangle.h b/src/FluRectangle.h index 7950d0a8..579b7c6f 100644 --- a/src/FluRectangle.h +++ b/src/FluRectangle.h @@ -17,4 +17,4 @@ public: explicit FluRectangle(QQuickItem *parent = nullptr); void paint(QPainter *painter) override; -}; \ No newline at end of file +}; diff --git a/src/FluentUI.cpp b/src/FluentUI.cpp index 8a124e27..00c6804d 100644 --- a/src/FluentUI.cpp +++ b/src/FluentUI.cpp @@ -50,7 +50,7 @@ void FluentUI::registerTypes(const char *uri) const { qmlRegisterUncreatableType(uri, major, minor, "Axis", ""); qmlRegisterUncreatableType(uri, major, minor, "Ticker", ""); - qmlRegisterUncreatableType(uri, major, minor, "Grid", ""); + qmlRegisterUncreatableType(uri, major, minor, "PlotGrid", ""); qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluAcrylic.qml"), uri, major, minor, "FluAcrylic"); qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluAppBar.qml"), uri, major, minor, "FluAppBar"); diff --git a/src/qmlcustomplot/grid.h b/src/qmlcustomplot/grid.h index 0a2b9922..83043971 100644 --- a/src/qmlcustomplot/grid.h +++ b/src/qmlcustomplot/grid.h @@ -15,7 +15,7 @@ class Grid : public QObject { Q_OBJECT Q_ENUMS(LineType) - QML_ELEMENT + QML_NAMED_ELEMENT(PlotGrid) QML_UNCREATABLE("") public: enum LineType