diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-08-11 09:29:23 +0000 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-08-29 08:56:11 +0000 |
commit | 07171bc7a78a7c4d45372d8750e857d1da5d6173 (patch) | |
tree | f7b7d954ec44649c5e8131163b1831d528fa1924 /kweather/kweather.cpp | |
parent | 9add97c81586acc4c735d8e12ec3813c92a9edc0 (diff) | |
download | tdetoys-07171bc7a78a7c4d45372d8750e857d1da5d6173.tar.gz tdetoys-07171bc7a78a7c4d45372d8750e857d1da5d6173.zip |
KWeather Konqueror sidebar revival
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kweather/kweather.cpp')
-rw-r--r-- | kweather/kweather.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 71fe647..eb87f98 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -58,21 +58,21 @@ kweather::kweather(const TQString& configFile, Type t, int actions, { kdDebug(12004) << "Constructor " << endl; setObjId("weatherIface"); - + setBackgroundOrigin( TQWidget::AncestorOrigin ); loadPrefs(); initContextMenu(); initDCOP(); - + dockWidget = new dockwidget(reportLocation, this, "dockwidget"); connect(dockWidget, TQT_SIGNAL(buttonClicked()), TQT_SLOT(doReport())); dockWidget->setViewMode(mViewMode); setLabelColor(); - + timeOut = new TQTimer(this, "timeOut" ); connect(timeOut, TQT_SIGNAL(timeout()), TQT_SLOT(timeout())); timeOut->start(10*60*1000); - + if(mFirstRun) preferences(); else @@ -103,20 +103,20 @@ void kweather::initDCOP() { if ( !mClient ) mClient = TDEApplication::dcopClient(); - + if(!mClient->isAttached()) mClient->attach(); - + if(!attach()) return; - + kdDebug(12004) << "attached to the server..." << endl; - + if ( mWeatherService ) delete mWeatherService; - + mWeatherService = new WeatherService_stub( "KWeatherService", "WeatherService" ); - + if (!connectDCOPSignal(0, 0, "fileUpdate(TQString)", "refresh(TQString)",false)) kdDebug(12004) << "Could not attach dcop signal..." << endl; @@ -189,10 +189,10 @@ void kweather::doReport() if ( mReport == 0 ) { mReport = new reportView(reportLocation); - + connect( mReport, TQT_SIGNAL( finished() ), TQT_SLOT( slotReportFinished() ) ); } - + mReport->show(); mReport->raise(); } @@ -225,7 +225,7 @@ void kweather::loadPrefs(){ void kweather::savePrefs(){ kdDebug(12004) << "Saving Prefs..." << endl; TDEConfig *kcConfig = config(); - + kcConfig->setGroup("General Options"); kcConfig->writeEntry("logging", logOn); kcConfig->writeEntry("report_location", reportLocation); @@ -286,7 +286,7 @@ void kweather::timeout() { if ( !mWeatherService ) initDCOP(); - + if ( mWeatherService ) { // isEmtpy is true for null and 0 length strings |