Created
July 16, 2015 17:06
-
-
Save benjbaron/0b29aadf4f0c4d8e13ee to your computer and use it in GitHub Desktop.
Revisions
-
benslk created this gist
Jul 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ QString checkFile(QString foldername, QStringList exts, QString filename) { foreach(auto ext, exts) { QFileInfo check(foldername+"/"+filename+"."+ext); if(check.exists() && check.isFile()) return check.absoluteFilePath(); return QString(); } }