From 416309451958efbd22b4904aa9fdd1c1d54885f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 1 Oct 2015 18:36:18 +0200 Subject: Initial TDE conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/main.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index e899348..a63a1a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,16 +15,16 @@ * * ***************************************************************************/ -#include -#include -#include +#include +#include +#include #include #include #include #include #include -#include +#include #include "kooldock.h" @@ -46,7 +46,7 @@ extern "C" static const char *description = I18N_NOOP("
KoolDock
A Kool Dock for KDE

KoolDock is based upon the original work of Dang Viet Dung, Ksmoothdock 2.1

"); -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "o", 0, 0 }, { "options", I18N_NOOP("Show configuration window on start"), 0 }, @@ -59,8 +59,8 @@ int main(int argc, char *argv[]) { argv0=TQString("%1").arg(argv[0]); - KAboutData aboutData( "kooldock", I18N_NOOP("KoolDock"), - KOOLDOCK_VERSION, description, KAboutData::License_GPL, + TDEAboutData aboutData( "kooldock", I18N_NOOP("KoolDock"), + KOOLDOCK_VERSION, description, TDEAboutData::License_GPL, "(c) 2003, 2006 - KoolDock team", 0, "http://ktown.kde.cl/kooldock", "kooldock-devel@lists.kde.cl"); aboutData.addAuthor("Matias Fernandez",0, "radix@kde.cl"); aboutData.addAuthor("Francisco Guidi",0, "francisco@guidi.com", "http://francisco.guidi.com"); @@ -68,11 +68,11 @@ int main(int argc, char *argv[]) aboutData.addCredit("Mauricio Bahamonde", I18N_NOOP("Project Webmaster"), "elkrammer@kde.cl", "http://ktown.kde.cl/~elkrammer/"); aboutData.addCredit("Sebastian Sariego Benitez", I18N_NOOP("Icon and artwork"), "segfault@powers.cl", "http://segfault.kde.cl"); aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"), I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails")); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. #ifdef _ENABLE_DEBUG - KApplication::addCmdLineOptions(); + TDEApplication::addCmdLineOptions(); #endif #ifndef _ENABLE_DEBUG KUniqueApplication::addCmdLineOptions(); @@ -95,16 +95,16 @@ int main(int argc, char *argv[]) KUniqueApplication a; #endif #ifdef _ENABLE_DEBUG - KApplication a; + TDEApplication a; #endif KoolDock *kooldock = new KoolDock(); a.setMainWidget(kooldock); #ifndef _ENABLE_DEBUG - if(KCrash::crashHandler()!=0) + if(TDECrash::crashHandler()!=0) { kdDebug(0) << "Installing crash handler" << endl; - KCrash::setEmergencySaveFunction(crashHandler); // Try to restart on crash + TDECrash::setEmergencySaveFunction(crashHandler); // Try to restart on crash } #endif -- cgit v1.2.1