diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-07-16 10:39:30 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-07-16 22:21:16 +0200 |
commit | 9da08816e1072fc1391377a38d6afd9e73d756e0 (patch) | |
tree | d391a7e8096b8f3953b266afc52ce908f5ded1a2 /src | |
parent | e2dfba7a839b43d5e63ea1b7ab15ff9e0b434912 (diff) | |
download | qtxmlpatterns-9da08816e1072fc1391377a38d6afd9e73d756e0.tar.gz |
Add missing qqmlfile.h include
Fixes the following error on Ubuntu 18.04.2 with g++ 7.4.0:
/home/mitch/dev/qt5-dev/qtxmlpatterns/src/imports/xmllistmodel/qqmlxmllistmodel.cpp: In member function ‘void QQuickXmlListModel::reload()’:
/home/mitch/dev/qt5-dev/qtxmlpatterns/src/imports/xmllistmodel/qqmlxmllistmodel.cpp:1063:16: error: ‘QQmlFile’ has not been declared
} else if (QQmlFile::isLocalFile(d->src)) {
^~~~~~~~
/home/mitch/dev/qt5-dev/qtxmlpatterns/src/imports/xmllistmodel/qqmlxmllistmodel.cpp:1064:20: error: ‘QQmlFile’ has not been declared
QFile file(QQmlFile::urlToLocalFileOrQrc(d->src));
^~~~~~~~
Change-Id: I2ff7f898d42f51f8d0c5a1116049278a502ba343
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/xmllistmodel/qqmlxmllistmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index aff35e5..053e16a 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -40,6 +40,7 @@ #include "qqmlxmllistmodel_p.h" #include <qqmlcontext.h> +#include <qqmlfile.h> #include <private/qqmlengine_p.h> #include <private/qv4value_p.h> #include <private/qv4engine_p.h> |