From 1ea1e0d7f3c1c600b024e4862e69208d2f3232c7 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 15 Nov 2021 09:08:00 +0100 Subject: Document QLibraryInfo::Qml2ImportsPath as deprecated Also, add a TODO for migrating to QmlImportsPath in qt.conf. Task-number: QTBUG-98335 Change-Id: I3c321c99c6286ba64eef643876f5b56d5a8ca695 Reviewed-by: Fabian Kosmale Reviewed-by: Andrei Golubev Reviewed-by: Joerg Bornemann Reviewed-by: Thiago Macieira --- src/corelib/global/qlibraryinfo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index 3a515cb9ba..3b831e71af 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -511,7 +511,11 @@ void QLibraryInfoPrivate::keyAndDefault(QLibraryInfo::LibraryPath loc, QString * #endif "Binaries", "bin", "Plugins", "plugins", // should be ${ArchData}/plugins + + // TODO: Find a way to rename this to QmlImports + // without breaking compatibility with old qt.conf files. "Qml2Imports", "qml", // should be ${ArchData}/qml + "ArchData", ".", "Data", ".", "Translations", "translations", // should be ${Data}/translations @@ -670,7 +674,7 @@ QStringList QLibraryInfo::platformPluginArguments(const QString &platformName) \value BinariesPath The path to installed Qt binaries (tools and applications). \value PluginsPath The path to installed Qt plugins. \value QmlImportsPath The path to installed QML extensions to import. - \value Qml2ImportsPath The path to installed QML extensions to import. + \value Qml2ImportsPath This value is deprecated. Use QmlImportsPath instead. \value ArchDataPath The path to general architecture-dependent Qt data. \value DataPath The path to general architecture-independent Qt data. \value TranslationsPath The path to translation information for Qt strings. -- cgit v1.2.3