aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qml/doc/src/qmllanguageref/syntax/imports.qdoc2
-rw-r--r--src/qml/qml/qqmlengine.cpp4
-rw-r--r--src/qml/qml/qqmlimport.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/doc/src/qmllanguageref/syntax/imports.qdoc b/src/qml/doc/src/qmllanguageref/syntax/imports.qdoc
index fdba452271..4a350877ca 100644
--- a/src/qml/doc/src/qmllanguageref/syntax/imports.qdoc
+++ b/src/qml/doc/src/qmllanguageref/syntax/imports.qdoc
@@ -289,7 +289,7 @@ default locations to be searched by the engine. By default, this list contains:
\list
\li The directory of the current file
-\li The location specified by QLibraryInfo::Qml2ImportsPath
+\li The location specified by QLibraryInfo::QmlImportsPath
\li Paths specified by the \c QML2_IMPORT_PATH environment variable
\li The qrc:/qt-project.org/imports path inside the resources.
\endlist
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index 9b410bd1bf..eb0d2f24f3 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -1920,7 +1920,7 @@ void QQmlEngine::addImportPath(const QString& path)
By default, the list contains the directory of the application executable,
paths specified in the \c QML2_IMPORT_PATH environment variable,
- and the builtin \c Qml2ImportsPath from QLibraryInfo.
+ and the builtin \c QmlImportsPath from QLibraryInfo.
\sa addImportPath(), setImportPathList()
*/
@@ -1936,7 +1936,7 @@ QStringList QQmlEngine::importPathList() const
By default, the list contains the directory of the application executable,
paths specified in the \c QML2_IMPORT_PATH environment variable,
- and the builtin \c Qml2ImportsPath from QLibraryInfo.
+ and the builtin \c QmlImportsPath from QLibraryInfo.
\sa importPathList(), addImportPath()
*/
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
index 4e6a4a8928..7fa9277ab3 100644
--- a/src/qml/qml/qqmlimport.cpp
+++ b/src/qml/qml/qqmlimport.cpp
@@ -1942,9 +1942,9 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
: engine(e)
{
filePluginPath << QLatin1String(".");
- // Search order is applicationDirPath(), qrc:/qt-project.org/imports, $QML2_IMPORT_PATH, QLibraryInfo::Qml2ImportsPath
+ // Search order is applicationDirPath(), qrc:/qt-project.org/imports, $QML2_IMPORT_PATH, QLibraryInfo::QmlImportsPath
- QString installImportsPath = QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath);
+ QString installImportsPath = QLibraryInfo::path(QLibraryInfo::QmlImportsPath);
addImportPath(installImportsPath);
// env import paths