QFile::moveFileToTrash/Darwin: do set the error on iOS

We are returning false indicating we failed; explain why (functionality
not implemented).

Pick-to: 6.7 6.5
Change-Id: Ifb754f0e28774c20aa7cfffd17e6c97778fda575
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit d6bf56bb9268e944f75c960623a629a05b3ee6ac)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Thiago Macieira 2024-07-29 13:37:02 -07:00 committed by Qt Cherry-pick Bot
parent 59268b6d54
commit 12667b77ff

View File

@ -42,7 +42,7 @@ bool QFileSystemEngine::moveFileToTrash(const QFileSystemEntry &source,
#else // watch, tv, iOS don't have a trash can
Q_UNUSED(source);
Q_UNUSED(newLocation);
Q_UNUSED(error);
error = QSystemError(ENOSYS, QSystemError::StandardLibraryError);
return false;
#endif
}