summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-10-05 13:00:26 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-10-07 16:40:38 +0300
commit9a21e64f19cb467ee17e3889d244aba21b2cc117 (patch)
treebefb9dc9b987ccb8d2091f9c66fb22c5132a97b6 /doc
parent669d46f092ed0dbde1be0d0c75b3483597ce8b42 (diff)
Add invokable methods for converting paths to/from native separators
Task-number: QTIFW-2344 Change-Id: I971e96ed5b1f1e52c5779a04b7edab0952d89d9a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/scripting-api/packagemanagercore.qdoc21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/scripting-api/packagemanagercore.qdoc b/doc/scripting-api/packagemanagercore.qdoc
index e51b0ec17..ea32a59b7 100644
--- a/doc/scripting-api/packagemanagercore.qdoc
+++ b/doc/scripting-api/packagemanagercore.qdoc
@@ -438,6 +438,27 @@
*/
/*!
+ \qmlmethod string installer::toNativeSeparators(string path)
+
+ Returns \a path with the '/' separators converted to separators that are
+ appropriate for the underlying operating system.
+
+ On Unix platforms the returned string is the same as the argument.
+
+ \sa fromNativeSeparators()
+*/
+
+/*!
+ \qmlmethod string installer::fromNativeSeparators(string path)
+
+ Returns \a path using '/' as file separator.
+
+ On Unix platforms the returned string is the same as the argument.
+
+ \sa toNativeSeparators()
+*/
+
+/*!
\qmlmethod boolean installer::fileExists(string filePath)
Returns \c true if the \a filePath exists; otherwise returns \c false.