Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 8b093db989
commit 4b5c71fdde

@ -20,7 +20,7 @@ int main(int argc, char *argv[])
aboutData.addAuthor("Jason Katz-Brown", I18N_NOOP("main author"), "jason@katzbrown.com", "http://katzbrown.com/"); aboutData.addAuthor("Jason Katz-Brown", I18N_NOOP("main author"), "jason@katzbrown.com", "http://katzbrown.com/");
aboutData.addAuthor("Rob Kaper", I18N_NOOP("libatlantikui"), "cap@capsi.com", "http://capsi.com/"); aboutData.addAuthor("Rob Kaper", I18N_NOOP("libatlantikui"), "cap@capsi.com", "http://capsi.com/");
KCmdLineArgs::init(argc, argv, &aboutData); TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication kapplication; KApplication kapplication;

@ -52,18 +52,18 @@ static const KCmdLineOptions options[] =
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
KCmdLineArgs::init(argc, argv, appName, programName, description, version, false); TDECmdLineArgs::init(argc, argv, appName, programName, description, version, false);
KCmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
LNKForwarder app; LNKForwarder app;
return app.run(KCmdLineArgs::parsedArgs()); return app.run(TDECmdLineArgs::parsedArgs());
} }
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
int LNKForwarder::run(KCmdLineArgs *args) int LNKForwarder::run(TDECmdLineArgs *args)
{ {
if ( args->count() == 0 ) return 1; if ( args->count() == 0 ) return 1;

@ -34,7 +34,7 @@ class LNKForwarder : public KApplication
public: public:
int run(KCmdLineArgs *args); int run(TDECmdLineArgs *args);
protected slots: protected slots:
void delayedQuit(); void delayedQuit();

@ -27,14 +27,14 @@ int main(int argc, char* argv[])
I18N_NOOP("Filesystem Viewer"), I18N_NOOP("Filesystem Viewer"),
KAboutData::License_GPL, KAboutData::License_GPL,
I18N_NOOP("(c) 2002, Josef Weidendorfer")); I18N_NOOP("(c) 2002, Josef Weidendorfer"));
KCmdLineArgs::init(argc, argv, &aboutData); TDECmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
KApplication a; KApplication a;
KConfigGroup gconfig(KGlobal::config(), TQCString("General")); KConfigGroup gconfig(KGlobal::config(), TQCString("General"));
TQString path = gconfig.readPathEntry("Path", "."); TQString path = gconfig.readPathEntry("Path", ".");
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if (args->count()>0) path = args->arg(0); if (args->count()>0) path = args->arg(0);
// TreeMap Widget as toplevel window // TreeMap Widget as toplevel window

@ -41,10 +41,10 @@ int main(int argc, char *argv[])
"(c) 2002, Scott Wheeler", 0, 0, "wheeler@kde.org"); "(c) 2002, Scott Wheeler", 0, 0, "wheeler@kde.org");
aboutData.addAuthor("Scott Wheeler", 0, "wheeler@kde.org"); aboutData.addAuthor("Scott Wheeler", 0, "wheeler@kde.org");
KCmdLineArgs::init(argc, argv, &aboutData); TDECmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options); TDECmdLineArgs::addCmdLineOptions(options);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if(args->isSet("random") || args->isSet("daily")) { if(args->isSet("random") || args->isSet("daily")) {
KApplication a(false, false); KApplication a(false, false);

@ -576,7 +576,7 @@ int main(int argc, char **argv)
aboutData.addAuthor("Charles Samuels", I18N_NOOP("Nex Author"), aboutData.addAuthor("Charles Samuels", I18N_NOOP("Nex Author"),
"charles@kde.org"); "charles@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app; KApplication app;

Loading…
Cancel
Save