summaryrefslogtreecommitdiffstats
path: root/kode/kodemain.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:47 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:47 -0600
commit32b66c9ae78f439199a6d281cc33218e57c5106d (patch)
treee92cf1651596c736188317c75eeb1ce5662d57bd /kode/kodemain.cpp
parentd29a9ff5829fa930c466b98cb93a4cbdd24b1fa2 (diff)
downloadtdepim-32b66c9ae78f439199a6d281cc33218e57c5106d.tar.gz
tdepim-32b66c9ae78f439199a6d281cc33218e57c5106d.zip
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'kode/kodemain.cpp')
-rw-r--r--kode/kodemain.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp
index 3dd7b5780..081bba5f1 100644
--- a/kode/kodemain.cpp
+++ b/kode/kodemain.cpp
@@ -121,7 +121,7 @@ void addPropertyVariable( TQString &out, const TQString &type,
}
// FIXME: Put addProperty in PropertyAdder class and add endReadAhead function.
-int addProperty( KCmdLineArgs *args )
+int addProperty( TDECmdLineArgs *args )
{
if ( args->count() != 3 ) {
std::cerr << "Usage: kode --add-property <class> <proprerty-type> "
@@ -291,7 +291,7 @@ int addProperty( KCmdLineArgs *args )
return 0;
}
-int codify( KCmdLineArgs *args )
+int codify( TDECmdLineArgs *args )
{
if ( args->count() != 1 ) {
std::cerr << "Usage: kode --codify <sourcecodefile>" << std::endl;
@@ -320,7 +320,7 @@ int codify( KCmdLineArgs *args )
return 0;
}
-int create( KCmdLineArgs *args )
+int create( TDECmdLineArgs *args )
{
KODE::Printer p;
if ( args->isSet( "warning" ) ) p.setCreationWarning( true );
@@ -416,12 +416,12 @@ int create( KCmdLineArgs *args )
code.clear();
code += "KAboutData aboutData(\"test\",\"Test\",\"0.1\");";
- code += "KCmdLineArgs::init(argc,argv,&aboutData);";
- code += "KCmdLineArgs::addCmdLineOptions( options );";
+ code += "TDECmdLineArgs::init(argc,argv,&aboutData);";
+ code += "TDECmdLineArgs::addCmdLineOptions( options );";
code += "";
code += "KApplication app;";
code += "";
- code += "KCmdLineArgs *args = KCmdLineArgs::parsedArgs();";
+ code += "TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();";
code += "";
code += "Q_UNUSED( args );";
main.setBody( code );
@@ -612,12 +612,12 @@ int main(int argc,char **argv)
KAboutData aboutData( "kode", I18N_NOOP("TDE Code Generator"), "0.1" );
aboutData.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );
- KCmdLineArgs::init( argc, argv, &aboutData );
- KCmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs::init( argc, argv, &aboutData );
+ TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if ( args->isSet( "create-class" ) || args->isSet( "create-dialog" ) ||
args->isSet( "create-kioslave" ) || args->isSet( "create-main" ) ) {