Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

master
Timothy Pearson 11 years ago
parent 3ebb02e2a6
commit d4ef3460f8

@ -36,7 +36,7 @@ using namespace aptFront;
using namespace aptFront::cache; using namespace aptFront::cache;
using namespace adept; using namespace adept;
App::App( KCmdLineArgs *args ) { App::App( TDECmdLineArgs *args ) {
setMainWidget( this ); setMainWidget( this );
initialize(); initialize();
TQString qs_pkgname; TQString qs_pkgname;

@ -33,7 +33,7 @@ class App : public KMainWindow, Application {
public: public:
void setupActions(); void setupActions();
ExtTerminalInterface *terminal(); ExtTerminalInterface *terminal();
App( KCmdLineArgs *a ); App( TDECmdLineArgs *a );
signals: signals:
void imDone(); void imDone();
protected slots: protected slots:

@ -32,11 +32,11 @@ int main(int argc, char *argv[])
"me at mornfall dot net", "me at mornfall dot net",
"http://web.mornfall.net"); "http://web.mornfall.net");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
KGlobal::locale()->insertCatalogue(TQString::fromUtf8("libept")); KGlobal::locale()->insertCatalogue(TQString::fromUtf8("libept"));
App *ta = new App( args ); App *ta = new App( args );

@ -33,12 +33,12 @@ int main(int argc, char *argv[])
"me at mornfall dot net", "me at mornfall dot net",
"http://web.mornfall.net"); "http://web.mornfall.net");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
KGlobal::locale()->insertCatalogue(TQString::fromUtf8("libept")); KGlobal::locale()->insertCatalogue(TQString::fromUtf8("libept"));

@ -33,12 +33,12 @@ int main(int argc, char *argv[])
"me at mornfall dot net", "me at mornfall dot net",
"http://web.mornfall.net"); "http://web.mornfall.net");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
// if (args && args->isSet("xy")) ... // if (args && args->isSet("xy")) ...
/* KConfig* config = KGlobal::config(); /* KConfig* config = KGlobal::config();

@ -354,7 +354,7 @@ int main(int argc, char *argv[])
"2.1 Cruiser", "2.1 Cruiser",
DESCRIPTION, KAboutData::License_BSD, DESCRIPTION, KAboutData::License_BSD,
"Copyright (C) 2005, 2006 Peter Rockai"); "Copyright (C) 2005, 2006 Peter Rockai");
KCmdLineArgs::init(argc, argv, &about); TDECmdLineArgs::init(argc, argv, &about);
NotifierApp::addCmdLineOptions(); NotifierApp::addCmdLineOptions();
if (!NotifierApp::start()) if (!NotifierApp::start())

@ -33,12 +33,12 @@ int main(int argc, char *argv[])
"me at mornfall dot net", "me at mornfall dot net",
"http://web.mornfall.net"); "http://web.mornfall.net");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
// if (args && args->isSet("xy")) ... // if (args && args->isSet("xy")) ...
/* KConfig* config = KGlobal::config(); /* KConfig* config = KGlobal::config();

Loading…
Cancel
Save