refactor: rename ReloadPropagator to Scope

This commit is contained in:
outfoxxed 2024-03-03 17:10:29 -08:00
parent 1188bdd8b3
commit 65ad2a9877
Signed by untrusted user: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 3 additions and 3 deletions

View File

@ -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<QObject> children READ data);
Q_CLASSINFO("DefaultProperty", "children");
QML_ELEMENT;
QML_NAMED_ELEMENT(Scope);
public:
explicit ReloadPropagator(QObject* parent = nullptr): Reloadable(parent) {}