7#if QT_DEPRECATED_SINCE(6
, 4
)
9#include <QtQml/qqmlengine.h>
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
37static QList<QUrl> toUrlList(
const QStringList &paths)
40 urls.reserve(paths.size());
41 for (
const QString &path : paths)
42 urls += QUrl::fromLocalFile(path);
46QQuickLabsPlatformStandardPaths::QQuickLabsPlatformStandardPaths(QObject *parent)
51QObject *QQuickLabsPlatformStandardPaths::create(QQmlEngine *engine, QJSEngine *scriptEngine)
53 Q_UNUSED(scriptEngine);
54 return new QQuickLabsPlatformStandardPaths(engine);
58
59
60
61
62
63
64QString QQuickLabsPlatformStandardPaths::displayName(QStandardPaths::StandardLocation type)
66 return QStandardPaths::displayName(type);
70
71
72
73
74
75
76QUrl QQuickLabsPlatformStandardPaths::findExecutable(
const QString &executableName,
const QStringList &paths)
78 return QUrl::fromLocalFile(QStandardPaths::findExecutable(executableName, paths));
82
83
84
85
86
87
88QUrl QQuickLabsPlatformStandardPaths::locate(QStandardPaths::StandardLocation type,
const QString &fileName, QStandardPaths::LocateOptions options)
90 return QUrl::fromLocalFile(QStandardPaths::locate(type, fileName, options));
94
95
96
97
98
99
100QList<QUrl> QQuickLabsPlatformStandardPaths::locateAll(QStandardPaths::StandardLocation type,
const QString &fileName, QStandardPaths::LocateOptions options)
102 return toUrlList(QStandardPaths::locateAll(type, fileName, options));
106
107
108
109
110
111
112void QQuickLabsPlatformStandardPaths::setTestModeEnabled(
bool testMode)
114 QStandardPaths::setTestModeEnabled(testMode);
118
119
120
121
122
123
124QList<QUrl> QQuickLabsPlatformStandardPaths::standardLocations(QStandardPaths::StandardLocation type)
126 return toUrlList(QStandardPaths::standardLocations(type));
130
131
132
133
134
135
136QUrl QQuickLabsPlatformStandardPaths::writableLocation(QStandardPaths::StandardLocation type)
138 return QUrl::fromLocalFile(QStandardPaths::writableLocation(type));
143#include "moc_qquicklabsplatformstandardpaths_p.cpp"