diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-09-03 13:07:55 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-09-05 12:57:37 +0000 |
commit | 76f410452dd09489cc48197a0dd4d0bf95699647 (patch) | |
tree | 5043cab4d63676405668c1064bbfa5f6eda8882d /src/qml/qml/qqmltypeloader_p.h | |
parent | 1261fb2b89a8fa147f92c40d2476196d2745ca3f (diff) |
Optimize QQmlImportInstance::resolveType()
Optimize the case where the import is not a library and
tries to find the type on disk.
Avoid lots of conversions to and from QUrl and related
string processing.
Change-Id: Ife247d8adf5ec63127596f2c5ba16a56562ab84a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloader_p.h')
-rw-r--r-- | src/qml/qml/qqmltypeloader_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h index 5d85773be3..031554b330 100644 --- a/src/qml/qml/qqmltypeloader_p.h +++ b/src/qml/qml/qqmltypeloader_p.h @@ -313,6 +313,7 @@ public: QQmlRefPointer<QQmlQmldirData> getQmldir(const QUrl &); QString absoluteFilePath(const QString &path); + bool fileExists(const QString &path, const QString &file); bool directoryExists(const QString &path); const QQmlTypeLoaderQmldirContent qmldirContent(const QString &filePath); |