summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'helper.h')
-rw-r--r--helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index c9d1ad3..5955320 100644
--- a/helper.h
+++ b/helper.h
@@ -10,6 +10,7 @@
#include <QPair>
#include <QStringList>
+#include <QVariant>
#include <magic.h>
@@ -25,6 +26,7 @@ namespace Helper {
const QString createArchivePath(const QString &path, const QString &md5, bool withMd5 = false);
QPair<QString, QStringList> programData(const QString &prefix, const QString &preferred = QString());
const QString durationFromSecs(qint64 secs);
+ QVariant bytesFromUnit(QVariant number, const QString unit);
class SortFileInfoList : public std::binary_function<QFileInfo, QFileInfo, bool> {
public:
bool operator()(const QFileInfo &lhs, const QFileInfo &rhs) const;