summaryrefslogtreecommitdiffstats
path: root/kweather/weatherlib.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2022-01-14 14:03:12 +0200
committerMavridis Philippe <[email protected]>2022-01-14 14:03:12 +0200
commitaaa7f2013fae32d96a15b21ff45a17571795bfff (patch)
tree397b0b7aa8b42c1a646ee1a35d064878c8bacd7b /kweather/weatherlib.cpp
parentc9be50cc8d83e79c2fa32fcb0642927cc75cd0ba (diff)
downloadtdetoys-aaa7f2013fae32d96a15b21ff45a17571795bfff.tar.gz
tdetoys-aaa7f2013fae32d96a15b21ff45a17571795bfff.zip
WeatherLib: initialize correct icon setting
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kweather/weatherlib.cpp')
-rw-r--r--kweather/weatherlib.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp
index a7bb13c..5ca6640 100644
--- a/kweather/weatherlib.cpp
+++ b/kweather/weatherlib.cpp
@@ -34,6 +34,7 @@ email : [email protected]
#include <unistd.h>
#include <tdeapplication.h>
#include <kpassivepopup.h>
+#include <tdeconfig.h>
#include "metar_parser.h"
#include "stationdatabase.h"
@@ -89,6 +90,12 @@ WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *parent, const char
m_StationDb = stationDB;
data.setAutoDelete( true );
+
+ // Initialize correct icon setting
+ TDEConfig *conf = new TDEConfig("weather_panelappletrc");
+ conf->setGroup("General Options");
+ WeatherIconPrivate::instance()->useIconTheme(conf->readBoolEntry("use_icon_theme", true));
+ delete conf;
}
WeatherLib::~WeatherLib()