| 694 | } |
| 695 | |
| 696 | bool trash(QString path, QString* pathInTrash) |
| 697 | { |
| 698 | #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) |
| 699 | return false; |
| 700 | #else |
| 701 | // FIXME: Figure out trash in Flatpak. Qt seemingly doesn't use the Trash portal |
| 702 | if (DesktopServices::isFlatpak()) |
| 703 | return false; |
| 704 | #if defined Q_OS_WIN32 |
| 705 | if (IsWindowsServer()) |
| 706 | return false; |
| 707 | #endif |
| 708 | return QFile::moveToTrash(path, pathInTrash); |
| 709 | #endif |
| 710 | } |
| 711 | |
| 712 | QString PathCombine(const QString& path1, const QString& path2) |
| 713 | { |
no test coverage detected