summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-01-19 11:32:01 -0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-01-25 22:15:14 +0000
commitacdaef4ebd417322b759c6974d55192f057be979 (patch)
treec94e4bdd3fbebddc9098deca5e58ecbc237d4e4d /doc
parent92fb1f7e76ebe9c65615d72ea03110057421cf95 (diff)
QFile::moveToTrash: add documentation about run time and fail conditions
All of the implementations will attempt to perform a filesystem rename, so the runtime is constant for a single file and possibly for a directory full of files too. The macOS and Windows implementations use the OS API so they run with slightly elevated privileges. That means they don't fail under normal conditions. The XDG implementation will fail if the file or dir being trashed resides on a volume which doesn't have an existing trash location for the current user and one such cannot be created either, or if the hardlinking/renaming fails (usually with EXDEV). Pick-to: 6.6 Change-Id: I76ffba14ece04f24b43efffd17abd67e20196f2b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit 6d1b4d574021bc2d036e61526b01a2dea5876b5b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/global/externalsites/external-resources.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/global/externalsites/external-resources.qdoc b/doc/global/externalsites/external-resources.qdoc
index 3bf48bfd3b..bd1292f4c8 100644
--- a/doc/global/externalsites/external-resources.qdoc
+++ b/doc/global/externalsites/external-resources.qdoc
@@ -566,3 +566,8 @@
\externalpage https://www.qt.io/product/quality-assurance/test-center
\title Test Center
*/
+
+/*!
+ \externalpage https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
+ \title FreeDesktop.org Trash specification version 1.0
+*/