QFile::moveFileToTrash: explicitly disable Android support

This code has been enabled but didn't work: we kept getting permission
errors on use. So let's save some library size.

Change-Id: Ifb754f0e28774c20aa7cfffd17e7549e7624e42a
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
(cherry picked from commit c41b6b7986cdf68c18a20ae6ef54efe1e9c1396e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Thiago Macieira 2024-07-31 08:07:02 -07:00 committed by Qt Cherry-pick Bot
parent 1ccaae4c14
commit adf619ce0e

View File

@ -1182,7 +1182,7 @@ bool QFileSystemEngine::createLink(const QFileSystemEntry &source, const QFileSy
#ifdef Q_OS_DARWIN #ifdef Q_OS_DARWIN
// see qfilesystemengine_mac.mm // see qfilesystemengine_mac.mm
#elif defined(QT_BOOTSTRAPPED) || !defined(AT_FDCWD) #elif defined(QT_BOOTSTRAPPED) || !defined(AT_FDCWD) || defined(Q_OS_ANDROID)
// bootstrapped tools don't need this, and we don't want QStorageInfo // bootstrapped tools don't need this, and we don't want QStorageInfo
//static //static
bool QFileSystemEngine::moveFileToTrash(const QFileSystemEntry &, QFileSystemEntry &, bool QFileSystemEngine::moveFileToTrash(const QFileSystemEntry &, QFileSystemEntry &,