Remove leftovers from QML1
QML1 is not supported anymore, remove the leftover hooks for it. Change-Id: I2900726714c5faea3523b2ebe39bb393364b3bfb Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
8b91c68315
commit
e1fd607493
@ -38,8 +38,7 @@ except -sysconfdir should be located under -prefix/-hostprefix:
|
|||||||
-plugindir <dir> ...... Plugins [ARCHDATADIR/plugins]
|
-plugindir <dir> ...... Plugins [ARCHDATADIR/plugins]
|
||||||
-libexecdir <dir> ..... Helper programs [ARCHDATADIR/bin on Windows,
|
-libexecdir <dir> ..... Helper programs [ARCHDATADIR/bin on Windows,
|
||||||
ARCHDATADIR/libexec otherwise]
|
ARCHDATADIR/libexec otherwise]
|
||||||
-importdir <dir> ...... QML1 imports [ARCHDATADIR/imports]
|
-qmldir <dir> ......... QML imports [ARCHDATADIR/qml]
|
||||||
-qmldir <dir> ......... QML2 imports [ARCHDATADIR/qml]
|
|
||||||
-datadir <dir> ........ Arch-independent data [PREFIX]
|
-datadir <dir> ........ Arch-independent data [PREFIX]
|
||||||
-docdir <dir> ......... Documentation [DATADIR/doc]
|
-docdir <dir> ......... Documentation [DATADIR/doc]
|
||||||
-translationdir <dir> . Translations [DATADIR/translations]
|
-translationdir <dir> . Translations [DATADIR/translations]
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -417,7 +417,6 @@ while [ "$#" -gt 0 ]; do
|
|||||||
-docdir| \
|
-docdir| \
|
||||||
-headerdir| \
|
-headerdir| \
|
||||||
-plugindir| \
|
-plugindir| \
|
||||||
-importdir| \
|
|
||||||
-qmldir| \
|
-qmldir| \
|
||||||
-archdatadir| \
|
-archdatadir| \
|
||||||
-datadir| \
|
-datadir| \
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
"hostbindir": "string",
|
"hostbindir": "string",
|
||||||
"hostdatadir": "string",
|
"hostdatadir": "string",
|
||||||
"hostlibdir": "string",
|
"hostlibdir": "string",
|
||||||
"importdir": "string",
|
|
||||||
"libdir": "string",
|
"libdir": "string",
|
||||||
"libexecdir": "string",
|
"libexecdir": "string",
|
||||||
"plugindir": "string",
|
"plugindir": "string",
|
||||||
|
@ -699,7 +699,6 @@ defineReplace(printInstallPaths) {
|
|||||||
$$printInstallPath(LibraryExecutables, libexecdir, $$DEFAULT_LIBEXEC) \
|
$$printInstallPath(LibraryExecutables, libexecdir, $$DEFAULT_LIBEXEC) \
|
||||||
$$printInstallPath(Binaries, bindir, bin) \
|
$$printInstallPath(Binaries, bindir, bin) \
|
||||||
$$printInstallPath(Plugins, plugindir, plugins) \
|
$$printInstallPath(Plugins, plugindir, plugins) \
|
||||||
$$printInstallPath(Imports, importdir, imports) \
|
|
||||||
$$printInstallPath(Qml2Imports, qmldir, qml) \
|
$$printInstallPath(Qml2Imports, qmldir, qml) \
|
||||||
$$printInstallPath(ArchData, archdatadir, .) \
|
$$printInstallPath(ArchData, archdatadir, .) \
|
||||||
$$printInstallPath(Data, datadir, .) \
|
$$printInstallPath(Data, datadir, .) \
|
||||||
@ -794,7 +793,6 @@ defineTest(qtConfOutput_preparePaths) {
|
|||||||
archdata_pfx = $$config.rel_input.archdatadir/
|
archdata_pfx = $$config.rel_input.archdatadir/
|
||||||
processQtPath("", libexecdir, $${archdata_pfx}$$DEFAULT_LIBEXEC)
|
processQtPath("", libexecdir, $${archdata_pfx}$$DEFAULT_LIBEXEC)
|
||||||
processQtPath("", plugindir, $${archdata_pfx}plugins)
|
processQtPath("", plugindir, $${archdata_pfx}plugins)
|
||||||
processQtPath("", importdir, $${archdata_pfx}imports)
|
|
||||||
processQtPath("", qmldir, $${archdata_pfx}qml)
|
processQtPath("", qmldir, $${archdata_pfx}qml)
|
||||||
processQtPath("", sysconfdir, $$DEFAULT_SYSCONFDIR)
|
processQtPath("", sysconfdir, $$DEFAULT_SYSCONFDIR)
|
||||||
$$have_hostprefix {
|
$$have_hostprefix {
|
||||||
@ -838,7 +836,6 @@ defineTest(qtConfOutput_preparePaths) {
|
|||||||
addConfStr($$config.rel_input.libexecdir)
|
addConfStr($$config.rel_input.libexecdir)
|
||||||
addConfStr($$config.rel_input.bindir)
|
addConfStr($$config.rel_input.bindir)
|
||||||
addConfStr($$config.rel_input.plugindir)
|
addConfStr($$config.rel_input.plugindir)
|
||||||
addConfStr($$config.rel_input.importdir)
|
|
||||||
addConfStr($$config.rel_input.qmldir)
|
addConfStr($$config.rel_input.qmldir)
|
||||||
addConfStr($$config.rel_input.archdatadir)
|
addConfStr($$config.rel_input.archdatadir)
|
||||||
addConfStr($$config.rel_input.datadir)
|
addConfStr($$config.rel_input.datadir)
|
||||||
|
@ -54,7 +54,6 @@ static const struct {
|
|||||||
{ "QT_INSTALL_BINS", QLibraryInfo::BinariesPath, false, false },
|
{ "QT_INSTALL_BINS", QLibraryInfo::BinariesPath, false, false },
|
||||||
{ "QT_INSTALL_TESTS", QLibraryInfo::TestsPath, false, false },
|
{ "QT_INSTALL_TESTS", QLibraryInfo::TestsPath, false, false },
|
||||||
{ "QT_INSTALL_PLUGINS", QLibraryInfo::PluginsPath, false, false },
|
{ "QT_INSTALL_PLUGINS", QLibraryInfo::PluginsPath, false, false },
|
||||||
{ "QT_INSTALL_IMPORTS", QLibraryInfo::ImportsPath, false, false },
|
|
||||||
{ "QT_INSTALL_QML", QLibraryInfo::Qml2ImportsPath, false, false },
|
{ "QT_INSTALL_QML", QLibraryInfo::Qml2ImportsPath, false, false },
|
||||||
{ "QT_INSTALL_TRANSLATIONS", QLibraryInfo::TranslationsPath, false, false },
|
{ "QT_INSTALL_TRANSLATIONS", QLibraryInfo::TranslationsPath, false, false },
|
||||||
{ "QT_INSTALL_CONFIGURATION", QLibraryInfo::SettingsPath, false, false },
|
{ "QT_INSTALL_CONFIGURATION", QLibraryInfo::SettingsPath, false, false },
|
||||||
|
@ -419,7 +419,6 @@ static const struct {
|
|||||||
#endif
|
#endif
|
||||||
{ "Binaries", "bin" },
|
{ "Binaries", "bin" },
|
||||||
{ "Plugins", "plugins" }, // should be ${ArchData}/plugins
|
{ "Plugins", "plugins" }, // should be ${ArchData}/plugins
|
||||||
{ "Imports", "imports" }, // should be ${ArchData}/imports
|
|
||||||
{ "Qml2Imports", "qml" }, // should be ${ArchData}/qml
|
{ "Qml2Imports", "qml" }, // should be ${ArchData}/qml
|
||||||
{ "ArchData", "." },
|
{ "ArchData", "." },
|
||||||
{ "Data", "." },
|
{ "Data", "." },
|
||||||
@ -834,7 +833,6 @@ QStringList QLibraryInfo::platformPluginArguments(const QString &platformName)
|
|||||||
\value LibraryExecutablesPath The location of installed executables required by libraries at runtime.
|
\value LibraryExecutablesPath The location of installed executables required by libraries at runtime.
|
||||||
\value BinariesPath The location of installed Qt binaries (tools and applications).
|
\value BinariesPath The location of installed Qt binaries (tools and applications).
|
||||||
\value PluginsPath The location of installed Qt plugins.
|
\value PluginsPath The location of installed Qt plugins.
|
||||||
\value ImportsPath The location of installed QML extensions to import (QML 1.x).
|
|
||||||
\value Qml2ImportsPath The location of installed QML extensions to import (QML 2.x).
|
\value Qml2ImportsPath The location of installed QML extensions to import (QML 2.x).
|
||||||
\value ArchDataPath The location of general architecture-dependent Qt data.
|
\value ArchDataPath The location of general architecture-dependent Qt data.
|
||||||
\value DataPath The location of general architecture-independent Qt data.
|
\value DataPath The location of general architecture-independent Qt data.
|
||||||
|
@ -79,7 +79,6 @@ public:
|
|||||||
LibraryExecutablesPath,
|
LibraryExecutablesPath,
|
||||||
BinariesPath,
|
BinariesPath,
|
||||||
PluginsPath,
|
PluginsPath,
|
||||||
ImportsPath,
|
|
||||||
Qml2ImportsPath,
|
Qml2ImportsPath,
|
||||||
ArchDataPath,
|
ArchDataPath,
|
||||||
DataPath,
|
DataPath,
|
||||||
|
@ -161,7 +161,6 @@ extern "C" Q_CORE_EXPORT void qt_removeObject(QObject *)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void (*QAbstractDeclarativeData::destroyed)(QAbstractDeclarativeData *, QObject *) = 0;
|
void (*QAbstractDeclarativeData::destroyed)(QAbstractDeclarativeData *, QObject *) = 0;
|
||||||
void (*QAbstractDeclarativeData::destroyed_qml1)(QAbstractDeclarativeData *, QObject *) = 0;
|
|
||||||
void (*QAbstractDeclarativeData::parentChanged)(QAbstractDeclarativeData *, QObject *, QObject *) = 0;
|
void (*QAbstractDeclarativeData::parentChanged)(QAbstractDeclarativeData *, QObject *, QObject *) = 0;
|
||||||
void (*QAbstractDeclarativeData::signalEmitted)(QAbstractDeclarativeData *, QObject *, int, void **) = 0;
|
void (*QAbstractDeclarativeData::signalEmitted)(QAbstractDeclarativeData *, QObject *, int, void **) = 0;
|
||||||
int (*QAbstractDeclarativeData::receivers)(QAbstractDeclarativeData *, const QObject *, int) = 0;
|
int (*QAbstractDeclarativeData::receivers)(QAbstractDeclarativeData *, const QObject *, int) = 0;
|
||||||
@ -1013,15 +1012,8 @@ QObject::~QObject()
|
|||||||
emit destroyed(this);
|
emit destroyed(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->declarativeData) {
|
if (d->declarativeData && QAbstractDeclarativeData::destroyed)
|
||||||
if (static_cast<QAbstractDeclarativeDataImpl*>(d->declarativeData)->ownedByQml1) {
|
|
||||||
if (QAbstractDeclarativeData::destroyed_qml1)
|
|
||||||
QAbstractDeclarativeData::destroyed_qml1(d->declarativeData, this);
|
|
||||||
} else {
|
|
||||||
if (QAbstractDeclarativeData::destroyed)
|
|
||||||
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
QObjectPrivate::ConnectionData *cd = d->connections.loadRelaxed();
|
QObjectPrivate::ConnectionData *cd = d->connections.loadRelaxed();
|
||||||
if (cd) {
|
if (cd) {
|
||||||
|
@ -89,7 +89,6 @@ class Q_CORE_EXPORT QAbstractDeclarativeData
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void (*destroyed)(QAbstractDeclarativeData *, QObject *);
|
static void (*destroyed)(QAbstractDeclarativeData *, QObject *);
|
||||||
static void (*destroyed_qml1)(QAbstractDeclarativeData *, QObject *);
|
|
||||||
static void (*parentChanged)(QAbstractDeclarativeData *, QObject *, QObject *);
|
static void (*parentChanged)(QAbstractDeclarativeData *, QObject *, QObject *);
|
||||||
static void (*signalEmitted)(QAbstractDeclarativeData *, QObject *, int, void **);
|
static void (*signalEmitted)(QAbstractDeclarativeData *, QObject *, int, void **);
|
||||||
static int (*receivers)(QAbstractDeclarativeData *, const QObject *, int);
|
static int (*receivers)(QAbstractDeclarativeData *, const QObject *, int);
|
||||||
@ -97,14 +96,6 @@ public:
|
|||||||
static void (*setWidgetParent)(QObject *, QObject *); // Used by the QML engine to specify parents for widgets. Set by QtWidgets.
|
static void (*setWidgetParent)(QObject *, QObject *); // Used by the QML engine to specify parents for widgets. Set by QtWidgets.
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is an implementation of QAbstractDeclarativeData that is identical with
|
|
||||||
// the implementation in QtDeclarative and QtQml for the first bit
|
|
||||||
struct QAbstractDeclarativeDataImpl : public QAbstractDeclarativeData
|
|
||||||
{
|
|
||||||
quint32 ownedByQml1:1;
|
|
||||||
quint32 unused: 31;
|
|
||||||
};
|
|
||||||
|
|
||||||
class Q_CORE_EXPORT QObjectPrivate : public QObjectData
|
class Q_CORE_EXPORT QObjectPrivate : public QObjectData
|
||||||
{
|
{
|
||||||
Q_DECLARE_PUBLIC(QObject)
|
Q_DECLARE_PUBLIC(QObject)
|
||||||
|
@ -1580,13 +1580,8 @@ QGraphicsItem::~QGraphicsItem()
|
|||||||
p->wasDeleted = true;
|
p->wasDeleted = true;
|
||||||
if (p->declarativeData) {
|
if (p->declarativeData) {
|
||||||
p->wasDeleted = true; // needed, so that destroying the declarative data does the right thing
|
p->wasDeleted = true; // needed, so that destroying the declarative data does the right thing
|
||||||
if (static_cast<QAbstractDeclarativeDataImpl*>(p->declarativeData)->ownedByQml1) {
|
|
||||||
if (QAbstractDeclarativeData::destroyed_qml1)
|
|
||||||
QAbstractDeclarativeData::destroyed_qml1(p->declarativeData, o);
|
|
||||||
} else {
|
|
||||||
if (QAbstractDeclarativeData::destroyed)
|
if (QAbstractDeclarativeData::destroyed)
|
||||||
QAbstractDeclarativeData::destroyed(p->declarativeData, o);
|
QAbstractDeclarativeData::destroyed(p->declarativeData, o);
|
||||||
}
|
|
||||||
p->declarativeData = 0;
|
p->declarativeData = 0;
|
||||||
p->wasDeleted = false;
|
p->wasDeleted = false;
|
||||||
}
|
}
|
||||||
|
@ -1513,13 +1513,8 @@ QWidget::~QWidget()
|
|||||||
|
|
||||||
if (d->declarativeData) {
|
if (d->declarativeData) {
|
||||||
d->wasDeleted = true; // needed, so that destroying the declarative data does the right thing
|
d->wasDeleted = true; // needed, so that destroying the declarative data does the right thing
|
||||||
if (static_cast<QAbstractDeclarativeDataImpl*>(d->declarativeData)->ownedByQml1) {
|
|
||||||
if (QAbstractDeclarativeData::destroyed_qml1)
|
|
||||||
QAbstractDeclarativeData::destroyed_qml1(d->declarativeData, this);
|
|
||||||
} else {
|
|
||||||
if (QAbstractDeclarativeData::destroyed)
|
if (QAbstractDeclarativeData::destroyed)
|
||||||
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
QAbstractDeclarativeData::destroyed(d->declarativeData, this);
|
||||||
}
|
|
||||||
d->declarativeData = 0; // don't activate again in ~QObject
|
d->declarativeData = 0; // don't activate again in ~QObject
|
||||||
d->wasDeleted = false;
|
d->wasDeleted = false;
|
||||||
}
|
}
|
||||||
|
@ -6926,8 +6926,7 @@ void tst_QObject::noDeclarativeParentChangedOnDestruction()
|
|||||||
QObject *parent = new QObject;
|
QObject *parent = new QObject;
|
||||||
QObject *child = new QObject;
|
QObject *child = new QObject;
|
||||||
|
|
||||||
QAbstractDeclarativeDataImpl dummy;
|
QAbstractDeclarativeData dummy;
|
||||||
dummy.ownedByQml1 = false;
|
|
||||||
QObjectPrivate::get(child)->declarativeData = &dummy;
|
QObjectPrivate::get(child)->declarativeData = &dummy;
|
||||||
|
|
||||||
parentChangeCalled = false;
|
parentChangeCalled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user