aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-06-16 15:19:33 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-06-16 16:06:04 +0200
commit0c35ba6244a80e4ae0e1ba3665d529301afd521e (patch)
tree81e0d068f1bfad6838438326d0ff322c2074b2b9 /src/qml/qml/qqmlengine.cpp
parent5e410da15c265ba8f053e4e40f409e32599c9e3f (diff)
QQmlEngine: Remove ownedByQml1 checks
The bit is still left in QQmlData for now; checking which of those flags are still needed is left as an exercise for later. Change-Id: I1ed8e634aefa7d61db4f96115cc07e2b81a8fbcc Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index c63418cb0b..c810b26f39 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -709,16 +709,12 @@ QQmlData::~QQmlData()
void QQmlData::destroyed(QAbstractDeclarativeData *d, QObject *o)
{
QQmlData *ddata = static_cast<QQmlData *>(d);
- if (ddata->ownedByQml1)
- return;
ddata->destroyed(o);
}
void QQmlData::parentChanged(QAbstractDeclarativeData *d, QObject *o, QObject *p)
{
QQmlData *ddata = static_cast<QQmlData *>(d);
- if (ddata->ownedByQml1)
- return;
ddata->parentChanged(o, p);
}
@@ -748,7 +744,6 @@ void QQmlData::signalEmitted(QAbstractDeclarativeData *, QObject *object, int in
{
QQmlData *ddata = QQmlData::get(object, false);
if (!ddata) return; // Probably being deleted
- if (ddata->ownedByQml1) return;
// In general, QML only supports QObject's that live on the same thread as the QQmlEngine
// that they're exposed to. However, to make writing "worker objects" that calculate data
@@ -805,16 +800,12 @@ void QQmlData::signalEmitted(QAbstractDeclarativeData *, QObject *object, int in
int QQmlData::receivers(QAbstractDeclarativeData *d, const QObject *, int index)
{
QQmlData *ddata = static_cast<QQmlData *>(d);
- if (ddata->ownedByQml1)
- return 0;
return ddata->endpointCount(index);
}
bool QQmlData::isSignalConnected(QAbstractDeclarativeData *d, const QObject *, int index)
{
QQmlData *ddata = static_cast<QQmlData *>(d);
- if (ddata->ownedByQml1)
- return false;
return ddata->signalHasEndpoint(index);
}