[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdetoys/kweather
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2004-09-11 11:37:21
Message-ID: 20040911113721.DBF0A24FD () office ! kde ! org
[Download RAW message or body]
CVS commit by aacid:
Port to setAboutData
M +7 -12 kcmweather.cpp 1.5
M +0 -2 kcmweather.h 1.2
M +7 -12 kcmweatherservice.cpp 1.4
M +0 -2 kcmweatherservice.h 1.3
--- kdetoys/kweather/kcmweather.cpp #1.4:1.5
@@ -68,4 +68,11 @@ KCMWeather::KCMWeather( QWidget *parent,
connect( mWidget->m_reportLocation, SIGNAL( textChanged( const QString& ) ),
SLOT( reportLocationChanged() ) );
+ KAboutData *about = new KAboutData( I18N_NOOP( "kcmweather" ),
+ I18N_NOOP( "KWeather Configure Dialog" ),
+ 0, 0, KAboutData::License_GPL,
+ I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
+
+ about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
+ setAboutData(about);
}
@@ -136,15 +143,3 @@ void KCMWeather::defaults()
}
-const KAboutData* KCMWeather::aboutData() const
-{
- KAboutData *about = new KAboutData( I18N_NOOP( "kcmweather" ),
- I18N_NOOP( "KWeather Configure Dialog" ),
- 0, 0, KAboutData::License_GPL,
- I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
-
- about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
-
- return about;
-}
-
#include "kcmweather.moc"
--- kdetoys/kweather/kcmweather.h #1.1:1.2
@@ -27,5 +27,4 @@
#include <kcmodule.h>
-class KAboutData;
class prefsDialogData;
@@ -40,5 +39,4 @@ class KCMWeather : public KCModule
virtual void save();
virtual void defaults();
- virtual const KAboutData* aboutData() const;
private slots:
--- kdetoys/kweather/kcmweatherservice.cpp #1.3:1.4
@@ -45,4 +45,11 @@ KCMWeatherService::KCMWeatherService( QW
mWidget = new ServiceConfigWidget( this );
layout->addWidget( mWidget );
+ KAboutData *about = new KAboutData( "kcmweatherservice",
+ I18N_NOOP( "KWeather Configure Dialog" ),
+ 0, 0, KAboutData::License_GPL,
+ I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
+
+ about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
+ setAboutData(about);
}
@@ -59,15 +66,3 @@ void KCMWeatherService::defaults()
}
-const KAboutData* KCMWeatherService::aboutData() const
-{
- KAboutData *about = new KAboutData( "kcmweatherservice",
- I18N_NOOP( "KWeather Configure Dialog" ),
- 0, 0, KAboutData::License_GPL,
- I18N_NOOP( "(c), 2003 Tobias Koenig" ) );
-
- about->addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );
-
- return about;
-}
-
#include "kcmweatherservice.moc"
--- kdetoys/kweather/kcmweatherservice.h #1.2:1.3
@@ -27,5 +27,4 @@
#include <kcmodule.h>
-class KAboutData;
class ServiceConfigWidget;
@@ -40,5 +39,4 @@ class KCMWeatherService : public KCModul
virtual void save();
virtual void defaults();
- virtual const KAboutData* aboutData() const;
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic