diff options
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/folderlistmodel/qquickfolderlistmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/folderlistmodel/qquickfolderlistmodel.cpp b/src/imports/folderlistmodel/qquickfolderlistmodel.cpp index b937fbdbc3..218d7955e1 100644 --- a/src/imports/folderlistmodel/qquickfolderlistmodel.cpp +++ b/src/imports/folderlistmodel/qquickfolderlistmodel.cpp @@ -44,7 +44,7 @@ #include "fileinfothread_p.h" #include "fileproperty_p.h" #include <qqmlcontext.h> -#include <private/qqmlengine_p.h> +#include <qqmlfile.h> QT_BEGIN_NAMESPACE @@ -369,7 +369,7 @@ void QQuickFolderListModel::setFolder(const QUrl &folder) if (folder == d->currentDir) return; - QString localPath = QQmlEnginePrivate::urlToLocalFileOrQrc(folder); + QString localPath = QQmlFile::urlToLocalFileOrQrc(folder); QString resolvedPath = QDir::cleanPath(QUrl(localPath).path()); beginResetModel(); @@ -412,7 +412,7 @@ void QQuickFolderListModel::setRootFolder(const QUrl &path) if (path.isEmpty()) return; - QString localPath = QQmlEnginePrivate::urlToLocalFileOrQrc(path); + QString localPath = QQmlFile::urlToLocalFileOrQrc(path); QString resolvedPath = QDir::cleanPath(QUrl(localPath).path()); QFileInfo info(resolvedPath); |