CVS commit by bmeyer: Migrated to standard KAboutData for the the version of the kcm module (v.s. right now just a label with a string) M +0 -2 battery.cpp 1.40 M +9 -1 main.cpp 1.31 --- kdeutils/klaptopdaemon/main.cpp #1.30:1.31 @@ -32,4 +32,5 @@ #include "main.h" +#include "version.h" #include "warning.h" #include "power.h" @@ -223,4 +224,11 @@ LaptopModule::LaptopModule(QWidget *pare } + KAboutData* about = + new KAboutData("kcmlaptop", I18N_NOOP("Laptop Battery Configuration"), LAPTOP_VERSION, + I18N_NOOP("Battery Control Panel Module"), + KAboutData::License_GPL, + I18N_NOOP("(c) 1999 Paul Campbell"), 0, 0); + //about->addAuthor("NAME", 0, "e-mail addy"); + setAboutData( about ); } --- kdeutils/klaptopdaemon/battery.cpp #1.39:1.40 @@ -171,6 +171,4 @@ BatteryConfig::BatteryConfig (QWidget * connect(startMonitor, SIGNAL(clicked()), this, SLOT(slotStartMonitor())); top_layout->addWidget( startMonitor, 0, Qt::AlignRight ); - top_layout->addWidget( new QLabel( i18n("Version: %1").arg(LAPTOP_VERSION), this), 0, Qt::AlignRight ); - load();