summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectreplica.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/remoteobjects/qremoteobjectreplica.cpp')
-rw-r--r--src/remoteobjects/qremoteobjectreplica.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/remoteobjects/qremoteobjectreplica.cpp b/src/remoteobjects/qremoteobjectreplica.cpp
index 292e6db..3d15502 100644
--- a/src/remoteobjects/qremoteobjectreplica.cpp
+++ b/src/remoteobjects/qremoteobjectreplica.cpp
@@ -129,6 +129,10 @@ QConnectedReplicaImplementation::~QConnectedReplicaImplementation()
serializeRemoveObjectPacket(m_packet, m_objectName);
sendCommand();
}
+ for (auto prop : m_propertyStorage) {
+ if (prop.canConvert<QObject*>())
+ prop.value<QObject *>()->deleteLater();
+ }
}
bool QRemoteObjectReplicaImplementation::needsDynamicInitialization() const
@@ -640,6 +644,14 @@ void QRemoteObjectReplica::setProperties(const QVariantList &properties)
}
/*!
+ \internal
+*/
+void QRemoteObjectReplica::setChild(int i, const QVariant &value)
+{
+ d_impl->setProperty(i, value);
+}
+
+/*!
Returns \c true if this replica has been initialized with data from the \l {Source} object. Returns \c false otherwise.
\sa state()