summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-08-09 08:36:14 +0100
committerRoy Marples <roy@marples.name>2020-08-09 08:36:14 +0100
commitd5d190456641edad9fd83c47396e011ef8584873 (patch)
treee839a8d905c8715489fe4f429f0bda222f24b2f4
parentc7a290f660a209b3d57c992bb19ea2e4e52caef7 (diff)
downloaddhcpcd-ui-d5d190456641edad9fd83c47396e011ef8584873.tar.xz
dhcpcd-qt: Use 22x22 png icon with system tray
SVG no longer renders with Qt5 :/
-rw-r--r--src/dhcpcd-qt/dhcpcd-qt.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dhcpcd-qt/dhcpcd-qt.cpp b/src/dhcpcd-qt/dhcpcd-qt.cpp
index 72ed924..b9cf703 100644
--- a/src/dhcpcd-qt/dhcpcd-qt.cpp
+++ b/src/dhcpcd-qt/dhcpcd-qt.cpp
@@ -574,8 +574,12 @@ QIcon DhcpcdQt::getIcon(QString category, QString name)
if (QIcon::hasThemeIcon(name))
icon = QIcon::fromTheme(name);
- else
- icon = QIcon(ICONDIR "/hicolor/scalable/" + category + "/" + name + ".svg");
+ else {
+ /* For some reason, SVG no longer displays ... */
+ QString file = QString("%1/hicolor/22x22/%2/%3.png")
+ .arg(ICONDIR, category, name);
+ icon = QIcon(file);
+ }
return icon;
}