aboutsummaryrefslogtreecommitdiff
path: root/dev-tools
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-04-17 10:27:22 -0400
committerKen Moore <ken@ixsystems.com>2018-04-17 10:27:22 -0400
commit3a53ebfe91ae0aad59c071c48076fa57256920c5 (patch)
tree24ee87eeeb8a48fcc3a37f47c2c9f209eaa87f5b /dev-tools
parentFix up the clipboard persistance. (diff)
downloadlumina-3a53ebfe91ae0aad59c071c48076fa57256920c5.tar.gz
lumina-3a53ebfe91ae0aad59c071c48076fa57256920c5.tar.bz2
lumina-3a53ebfe91ae0aad59c071c48076fa57256920c5.zip
Fix up the detection of icons in LFileInfo.
Add a large failover system where a list of possible icons are created, and the first one which exists in the theme is used. Also update the iconprobe dev tool a but: make it take an optional list of icons as input
Diffstat (limited to 'dev-tools')
-rw-r--r--dev-tools/iconprobe/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-tools/iconprobe/main.cpp b/dev-tools/iconprobe/main.cpp
index 694292c3..06599bf7 100644
--- a/dev-tools/iconprobe/main.cpp
+++ b/dev-tools/iconprobe/main.cpp
@@ -51,7 +51,9 @@ int main(int argc, char ** argv)
QApplication a(argc, argv);
QString icondir="/usr/local/share/icons";
- QStringList iconfiles; iconfiles << "user-home" << "falkon" << "firefox" << "utilities-terminal";
+ QStringList iconfiles;
+ if(argc<2){ iconfiles << "folder-downloads" << "start-here-lumina" << "firefox" << "utilities-terminal"; }
+ else{ iconfiles = QString(argv[1]).split(" "); }
QDir dir(icondir);
QStringList themes = dir.entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
@@ -69,6 +71,7 @@ int main(int argc, char ** argv)
qDebug() << " -------------------------";
qDebug() << " - Looking for icon:" << iconfiles[j];
qDebug() << " - Found File:" << findInDir(themepath, iconfiles[j]);
+ qDebug() << " - Has Theme Icon:" << QIcon::hasThemeIcon(iconfiles[j]);
qDebug() << " - Found Icon:" << QIcon::fromTheme(iconfiles[j]).name();
}
qDebug() << " ================";
bgstack15