From 5a062c388eaacd8b9e900333cf7a496034169f3e Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 12 Apr 2018 15:09:28 -0400 Subject: Add a quick test script I wrote to probe icon themes and see what is found or not. --- dev-tools/iconprobe/main.cpp | 77 ++++++++++++++++++++++++++++++++++++++++++++ dev-tools/iconprobe/test.pro | 12 +++++++ 2 files changed, 89 insertions(+) create mode 100644 dev-tools/iconprobe/main.cpp create mode 100644 dev-tools/iconprobe/test.pro diff --git a/dev-tools/iconprobe/main.cpp b/dev-tools/iconprobe/main.cpp new file mode 100644 index 00000000..694292c3 --- /dev/null +++ b/dev-tools/iconprobe/main.cpp @@ -0,0 +1,77 @@ +#include +#include +#include +#include +#include +#include + +QString findInDir(QString dir, QString file){ + QDir _dir(dir); + QStringList files = _dir.entryList(QStringList() << file+".*", QDir::Files | QDir::NoDotAndDotDot, QDir::Name); + if(files.isEmpty()){ + QStringList dirs = _dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); + QString tmp; + for(int i=0; i