diff options
author | Ken Moore <moorekou@gmail.com> | 2015-08-31 13:02:21 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-08-31 13:02:21 -0400 |
commit | 9fc9e5cf70adf1b2fd89752f3750c511fa7730df (patch) | |
tree | 988b4045a4140113bfdc58d3a97e88ce6714b8ee /libLumina/LuminaUtils.h | |
parent | Fix an issues with possible seg-faults when saving a *.desktop structure to f... (diff) | |
download | lumina-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.h | 3 |
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(); |