| 684 | } |
| 685 | |
| 686 | bool trash(QString path, QString* pathInTrash) |
| 687 | { |
| 688 | // FIXME: Figure out trash in Flatpak. Qt seemingly doesn't use the Trash portal |
| 689 | if (DesktopServices::isFlatpak()) |
| 690 | return false; |
| 691 | #if defined Q_OS_WIN32 |
| 692 | if (IsWindowsServer()) |
| 693 | return false; |
| 694 | #endif |
| 695 | return QFile::moveToTrash(path, pathInTrash); |
| 696 | } |
| 697 | |
| 698 | QString PathCombine(const QString& path1, const QString& path2) |
| 699 | { |
no test coverage detected