Code style improvements.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Mavridis Philippe 2 years ago
parent 6bca9050ac
commit 471cad022a
Signed by: blu.256
GPG Key ID: F8D2D7E2F989A494

@ -143,7 +143,9 @@ void KCMWeatherService::updateIconTheme( bool useIconTheme )
DCOPRef ws( "KWeatherService", "WeatherService" ); DCOPRef ws( "KWeatherService", "WeatherService" );
DCOPReply reply = ws.call( "useIconTheme", useIconTheme ); DCOPReply reply = ws.call( "useIconTheme", useIconTheme );
if( ! reply.isValid() ) if( ! reply.isValid() )
kdDebug(12004) << "[kcmweatherservice::updateIconTheme] DCOP call failed" << endl; {
kdDebug(12004) << "[kcmweatherservice::updateIconTheme] DCOP call failed" << endl;
}
} }
#include "kcmweatherservice.moc" #include "kcmweatherservice.moc"

@ -161,9 +161,9 @@ void kweather::preferences()
settingsDialog = new KCMultiDialog( this ); settingsDialog = new KCMultiDialog( this );
connect( settingsDialog, TQT_SIGNAL( configCommitted() ), TQT_SLOT( slotPrefsAccepted() ) ); connect( settingsDialog, TQT_SIGNAL( configCommitted() ), TQT_SLOT( slotPrefsAccepted() ) );
settingsDialog->addModule( "kcmweatherapplet.desktop" ); settingsDialog->addModule( "kcmweatherapplet.desktop" );
settingsDialog->addModule( "kcmweatherstations.desktop" ); settingsDialog->addModule( "kcmweatherstations.desktop" );
settingsDialog->addModule( "kcmweatherservice.desktop" ); settingsDialog->addModule( "kcmweatherservice.desktop" );
} }
settingsDialog->show(); settingsDialog->show();
@ -335,7 +335,9 @@ void kweather::slotPrefsAccepted()
dockWidget->setViewMode(mViewMode); dockWidget->setViewMode(mViewMode);
if ( !mWeatherService ) if ( !mWeatherService )
{
initDCOP(); initDCOP();
}
mWeatherService->forceUpdateAll(); mWeatherService->forceUpdateAll();
setLabelColor(); setLabelColor();

@ -150,7 +150,7 @@ TQPixmap WeatherService::icon(const TQString &stationID)
return kapp->iconLoader()->loadIcon( return kapp->iconLoader()->loadIcon(
iconFileName(stationID), iconFileName(stationID),
TDEIcon::Desktop TDEIcon::Desktop
); );
} }
TQString WeatherService::currentIconString(const TQString &stationID) TQString WeatherService::currentIconString(const TQString &stationID)
@ -165,7 +165,7 @@ TQString WeatherService::iconFileName(const TQString &stationID)
void WeatherService::useIconTheme(bool use) void WeatherService::useIconTheme(bool use)
{ {
kdDebug() << "[!!!] received signal to set useIconTheme to " << use << endl; kdDebug(12006) << "Received signal to set useIconTheme to " << use << endl;
WeatherIconPrivate::instance()->useIconTheme(use); WeatherIconPrivate::instance()->useIconTheme(use);
} }
@ -214,15 +214,15 @@ void WeatherService::removeStation(const TQString &stationID)
m_weatherLib->remove(stationID); m_weatherLib->remove(stationID);
saveSettings(); saveSettings();
emit stationRemoved(stationID); emit stationRemoved(stationID);
kdDebug() << "KWeatherService: station removed: " << stationID << endl; kdDebug(12006) << "Station removed: " << stationID << endl;
} }
void WeatherService::addStation(const TQString &stationID) void WeatherService::addStation(const TQString &stationID)
{ {
m_weatherLib->update(stationID); m_weatherLib->update(stationID);
saveSettings(); saveSettings(12006);
emit stationAdded(stationID); emit stationAdded(stationID);
kdDebug() << "KWeatherService: station added: " << stationID << endl; kdDebug() << "Station added: " << stationID << endl;
} }
void WeatherService::exit() void WeatherService::exit()

Loading…
Cancel
Save