From d598a49a3e1cadea0d72be28d147d219686413e7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:31:17 -0500 Subject: Convert to TDE R14 API --- src/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 8552d86..4d60369 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,28 +20,28 @@ * * ***************************************************************************/ -#include +#include #include -#include +#include #include -#include +#include #include "global.h" #include "knmap.h" static const char description[] = I18N_NOOP( "A KDE frontend for nmap" ); -static KCmdLineOptions options[] = { KCmdLineLastOption }; +static TDECmdLineOptions options[] = { KCmdLineLastOption }; // main // ==== int main( int argc, string argv[]) -{ QString version = QString( "Version 2.1, %1 %2" ).arg( __TIME__ ).arg( __DATE__ ); - KAboutData about( "knmap", +{ TQString version = TQString( "Version 2.1, %1 %2" ).arg( __TIME__ ).arg( __DATE__ ); + TDEAboutData about( "knmap", I18N_NOOP( "Knmap" ), version, description, - KAboutData::License_GPL, + TDEAboutData::License_GPL, "(C) 2005, 2006 Kevin Gilbert", I18N_NOOP( "This program is a complete re-write of one by the same name written by Alexandre\n" "Sagala. The last version of that program was 0.9 which was released on 2003-03-09\n" @@ -59,15 +59,15 @@ int main( int argc, string argv[]) "Initial rewrite released as version 1.0\nVersions 2.0, 2.1", "kev.gilbert@cdu.edu.au", "http://informatics.cdu.edu.au/staff/kgilbert" ); - KCmdLineArgs::init( argc, argv, &about ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &about ); + TDECmdLineArgs::addCmdLineOptions( options ); KApplication app; if( app.isRestored( )) { RESTORE( Knmap ); } else - { KCmdLineArgs* args = KCmdLineArgs::parsedArgs( ); + { TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs( ); Knmap* mainWin = new Knmap; app.setMainWidget( mainWin ); mainWin->show( ); -- cgit v1.2.1