MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / trash

Function trash

launcher/FileSystem.cpp:696–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694}
695
696bool 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
712QString PathCombine(const QString& path1, const QString& path2)
713{

Callers 8

trashInstanceMethod · 0.85
on_btnDelete_clickedMethod · 0.85
on_btnClean_clickedMethod · 0.85
trashIconMethod · 0.85
destroyMethod · 0.85
deleteSkinMethod · 0.85
destroyMethod · 0.85

Calls 1

isFlatpakFunction · 0.85

Tested by

no test coverage detected