diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-05-02 21:00:15 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-06-04 09:54:04 +0200 |
commit | 7dcb801dca2ce76211ecef33050e60452dc0de24 (patch) | |
tree | 9b90717665b5396ca4b609edbe4fce20950c01b1 /src/remoteobjects/qremoteobjectregistry.h | |
parent | 9a50496e8abc8be42e8c206e75ec6f5ee71eb27c (diff) |
Port QRemoteObjectRegistry to new property system
Task-number: QTBUG-90687
Change-Id: I6c75b7e4cac09f110c377ebc7ed1d72774ffb765
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectregistry.h')
-rw-r--r-- | src/remoteobjects/qremoteobjectregistry.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/remoteobjects/qremoteobjectregistry.h b/src/remoteobjects/qremoteobjectregistry.h index 94ef60e..82514f4 100644 --- a/src/remoteobjects/qremoteobjectregistry.h +++ b/src/remoteobjects/qremoteobjectregistry.h @@ -45,19 +45,22 @@ QT_BEGIN_NAMESPACE class QRemoteObjectRegistryPrivate; +class QRemoteObjectNodePrivate; class Q_REMOTEOBJECTS_EXPORT QRemoteObjectRegistry : public QRemoteObjectReplica { Q_OBJECT Q_CLASSINFO(QCLASSINFO_REMOTEOBJECT_TYPE, "Registry") - Q_PROPERTY(QRemoteObjectSourceLocations sourceLocations READ sourceLocations) + Q_PROPERTY(QRemoteObjectSourceLocations sourceLocations READ sourceLocations STORED false + BINDABLE bindableSourceLocations) public: ~QRemoteObjectRegistry() override; static void registerMetatypes(); QRemoteObjectSourceLocations sourceLocations() const; + QBindable<QRemoteObjectSourceLocations> bindableSourceLocations() const; Q_SIGNALS: void remoteObjectAdded(const QRemoteObjectSourceLocation &entry); @@ -70,12 +73,14 @@ protected Q_SLOTS: private: void initialize() override; + void notifySourceLocationsChanged(); explicit QRemoteObjectRegistry(QObject *parent = nullptr); explicit QRemoteObjectRegistry(QRemoteObjectNode *node, const QString &name, QObject *parent = nullptr); Q_DECLARE_PRIVATE(QRemoteObjectRegistry) friend class QT_PREPEND_NAMESPACE(QRemoteObjectNode); + friend class QT_PREPEND_NAMESPACE(QRemoteObjectNodePrivate); }; QT_END_NAMESPACE |