Implement class for handling filesystem paths

PR #15915.
This commit is contained in:
Vladimir Golovnev
2022-02-08 06:03:48 +03:00
committed by GitHub
parent facfa26eed
commit dd1bd8ad10
131 changed files with 2252 additions and 1868 deletions

View File

@@ -37,6 +37,8 @@
#include <QString>
#include "base/pathfwd.h"
enum class ShutdownDialogAction;
/* Miscellaneous functions that can be useful */
@@ -77,7 +79,7 @@ namespace Utils::Misc
int friendlyUnitPrecision(SizeUnit unit);
qint64 sizeInBytes(qreal size, SizeUnit unit);
bool isPreviewable(const QString &filename);
bool isPreviewable(const Path &filePath);
// Take a number of seconds and return a user-friendly
// time duration like "1d 2h 10m".