diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp index ac442cf..e670705 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,9 +15,9 @@ * * ***************************************************************************/ -#include <kcmdlineargs.h> -#include <kaboutdata.h> -#include <klocale.h> +#include <tdecmdlineargs.h> +#include <tdeaboutdata.h> +#include <tdelocale.h> #include <kuniqueapp.h> #include "ksensorssplash.h" @@ -28,7 +28,7 @@ static const char *description = // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "nodock", I18N_NOOP("Don't dock in KDE system tray."), 0 }, { "splash", I18N_NOOP("Show splash screen."), 0 }, @@ -40,16 +40,16 @@ static KCmdLineOptions options[] = int main(int argc, char *argv[]) { - KAboutData aboutData( "ksensors", I18N_NOOP("KSensors"), - VERSION, description, KAboutData::License_GPL, + TDEAboutData aboutData( "ksensors", I18N_NOOP("KSensors"), + VERSION, description, TDEAboutData::License_GPL, "(c) 2001, Miguel Novas", 0, 0, "[email protected]"); aboutData.addAuthor("Miguel Novas",0, "[email protected]"); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KUniqueApplication::addCmdLineOptions(); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); bool noDock= !args->isSet("dock"); bool showSplash= args->isSet("splash"); args->clear(); @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) if(!KUniqueApplication::start()) return 0; KUniqueApplication a; - KConfig *cfg= kapp->config(); + TDEConfig *cfg= kapp->config(); cfg->setGroup("General"); if( cfg->readEntry("Version")!=aboutData.version() ) { cfg->writeEntry("Version",aboutData.version()); @@ -67,8 +67,8 @@ int main(int argc, char *argv[]) if(showSplash) (void)new KSensorsSplash(); LMSensorsDock *ksensors= new LMSensorsDock(noDock); - QObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) ); - QObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) ); + TQObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) ); + TQObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) ); return a.exec(); } |