diff options
author | Mavridis Philippe <[email protected]> | 2021-12-24 12:55:58 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2022-01-14 12:39:21 +0200 |
commit | 56e84d9ab2061588e46dd2448c1fb420d0eafe10 (patch) | |
tree | a620d327a0ada90f93b6e44cd795224d0338e3ee /kweather/kweather.cpp | |
parent | b1d0b204e125214893eb84c05d25772ac3afaa28 (diff) | |
download | tdetoys-56e84d9ab2061588e46dd2448c1fb420d0eafe10.tar.gz tdetoys-56e84d9ab2061588e46dd2448c1fb420d0eafe10.zip |
Move useIconTheme DCOP call into kcmweatherservice.
This is where it belongs, and thus it can be used by both
the applet and sidebar.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kweather/kweather.cpp')
-rw-r--r-- | kweather/kweather.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 76ffb48..1edc9cd 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -217,7 +217,6 @@ void kweather::loadPrefs(){ fileName = kcConfig->readPathEntry("log_file_name"); reportLocation = kcConfig->readEntry("report_location"); mViewMode = kcConfig->readNumEntry("smallview_mode", dockwidget::ShowAll); - setUseIconTheme(kcConfig->readBoolEntry("use_icon_theme", true)); static TQColor black(TQt::black); mTextColor = kcConfig->readColorEntry("textColor", &black); @@ -233,23 +232,9 @@ void kweather::savePrefs(){ kcConfig->writeEntry("report_location", reportLocation); kcConfig->writeEntry("smallview_mode", mViewMode); kcConfig->writePathEntry("log_file_name", fileName ); - kcConfig->writeEntry("use_icon_theme", useIconTheme ); kcConfig->sync(); } -void kweather::setUseIconTheme( bool use ) -{ - useIconTheme = use; - - if ( !mWeatherService ) - initDCOP(); - - DCOPRef ws( "KWeatherService", "WeatherService" ); - DCOPReply reply = ws.call( "useIconTheme", useIconTheme ); - if( ! reply.isValid() ) - kdDebug() << "[kweather::setUseIconTheme] DCOP call failed" << endl; -} - void kweather::showWeather() { kdDebug(12004) << "Show weather" << endl; @@ -349,7 +334,6 @@ void kweather::slotPrefsAccepted() dockWidget->setLocationCode(reportLocation); dockWidget->setViewMode(mViewMode); - setUseIconTheme(useIconTheme); if ( !mWeatherService ) initDCOP(); mWeatherService->forceUpdateAll(); |