diff options
Diffstat (limited to 'examples/qml')
-rw-r--r-- | examples/qml/qmldom/qmldomloadeditwrite.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/qml/qmldom/qmldomloadeditwrite.cpp b/examples/qml/qmldom/qmldomloadeditwrite.cpp index 68a6b993f3..00f07f0662 100644 --- a/examples/qml/qmldom/qmldomloadeditwrite.cpp +++ b/examples/qml/qmldom/qmldomloadeditwrite.cpp @@ -43,7 +43,11 @@ int main() qDebug() << "loading the file" << testFilePath; env.loadFile( +#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0) + FileToLoad::fromFileSystem(env.ownerAs<DomEnvironment>(), testFilePath), +#else testFilePath, QString(), +#endif [&tFile](Path, const DomItem &, const DomItem &newIt) { tFile = newIt; // callback called when everything is loaded that receives the loaded // external file pair (path, oldValue, newValue) |