From 65ad2a98779ecaba64ad5a817257b4d093c5c9e8 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 3 Mar 2024 17:10:29 -0800 Subject: [PATCH] refactor: rename ReloadPropagator to Scope --- src/core/reload.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/reload.hpp b/src/core/reload.hpp index f757cc3..2ae459a 100644 --- a/src/core/reload.hpp +++ b/src/core/reload.hpp @@ -76,7 +76,7 @@ private: static QObject* getChildByReloadId(QObject* parent, const QString& reloadId); }; -///! Basic type that propagates reloads to child items in order. +///! Scope that propagates reloads to child items in order. /// Convenience type equivalent to setting `reloadableId` on properties in a /// QtObject instance. /// @@ -87,7 +87,7 @@ private: /// Variants { /// variants: ... /// -/// ReloadPropagator { +/// Scope { /// // everything in here behaves the same as if it was defined /// // directly in `Variants` reload-wise. /// } @@ -97,7 +97,7 @@ class ReloadPropagator: public Reloadable { Q_OBJECT; Q_PROPERTY(QQmlListProperty children READ data); Q_CLASSINFO("DefaultProperty", "children"); - QML_ELEMENT; + QML_NAMED_ELEMENT(Scope); public: explicit ReloadPropagator(QObject* parent = nullptr): Reloadable(parent) {}