aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaUtils.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-08-31 13:02:21 -0400
committerKen Moore <moorekou@gmail.com>2015-08-31 13:02:21 -0400
commit9fc9e5cf70adf1b2fd89752f3750c511fa7730df (patch)
tree988b4045a4140113bfdc58d3a97e88ce6714b8ee /libLumina/LuminaUtils.h
parentFix an issues with possible seg-faults when saving a *.desktop structure to f... (diff)
downloadlumina-9fc9e5cf70adf1b2fd89752f3750c511fa7730df.tar.gz
lumina-9fc9e5cf70adf1b2fd89752f3750c511fa7730df.tar.bz2
lumina-9fc9e5cf70adf1b2fd89752f3750c511fa7730df.zip
Add a new "PathToAbsolute()" function to LuminaUtils for converting a possible relative path to an absolute path (for input path validation/checking).
Diffstat (limited to 'libLumina/LuminaUtils.h')
-rw-r--r--libLumina/LuminaUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libLumina/LuminaUtils.h b/libLumina/LuminaUtils.h
index b479e3ec..06552d1f 100644
--- a/libLumina/LuminaUtils.h
+++ b/libLumina/LuminaUtils.h
@@ -45,6 +45,9 @@ public:
//List all the sub-directories of a parent dir (recursive)
static QStringList listSubDirectories(QString dir, bool recursive = true);
+ //Convert an input file/dir path to an absolute file path
+ static QString PathToAbsolute(QString path);
+
//Get the list of all file extensions which Qt can read (lowercase)
static QStringList imageExtensions();
bgstack15