summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/pathutils.cpp5
-rw-r--r--util/pathutils.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/util/pathutils.cpp b/util/pathutils.cpp
index 809dd6f2..8610b80d 100644
--- a/util/pathutils.cpp
+++ b/util/pathutils.cpp
@@ -26,6 +26,11 @@ QString PathCombine(QString path1, QString path2)
return path1.append(path2);
}
+QString PathCombine(QString path1, QString path2, QString path3)
+{
+ return PathCombine(PathCombine(path1, path2), path3);
+}
+
QString AbsolutePath(QString path)
{
return QFileInfo(path).absolutePath();
diff --git a/util/pathutils.h b/util/pathutils.h
index bfd11bea..1922e3a0 100644
--- a/util/pathutils.h
+++ b/util/pathutils.h
@@ -19,6 +19,7 @@
#include <QString>
QString PathCombine(QString path1, QString path2);
+QString PathCombine(QString path1, QString path2, QString path3);
QString AbsolutePath(QString path);