From d41050ea3f6904e5156d35f664346b816b9e4d12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 19 Jan 2013 18:46:43 -0600 Subject: Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4 --- kdialog/kdialog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdialog') diff --git a/kdialog/kdialog.cpp b/kdialog/kdialog.cpp index a46e100f5..9f7b70ebd 100644 --- a/kdialog/kdialog.cpp +++ b/kdialog/kdialog.cpp @@ -152,7 +152,7 @@ static void outputStringList(TQStringList list, bool separateOutput) } } -static int directCommand(KCmdLineArgs *args) +static int directCommand(TDECmdLineArgs *args) { TQString title; bool separateOutput = FALSE; @@ -161,7 +161,7 @@ static int directCommand(KCmdLineArgs *args) TQString defaultEntry; // --title text - KCmdLineArgs *qtargs = KCmdLineArgs::parsedArgs("qt"); // --title is a qt option + TDECmdLineArgs *qtargs = TDECmdLineArgs::parsedArgs("qt"); // --title is a qt option if(qtargs->isSet("title")) { title = TQFile::decodeName(qtargs->getOption("title")); } @@ -669,7 +669,7 @@ static int directCommand(KCmdLineArgs *args) return Widgets::progressBar(0, title, text, totalsteps) ? 1 : 0; } - KCmdLineArgs::usage(); + TDECmdLineArgs::usage(); return -2; // NOTREACHED } @@ -688,12 +688,12 @@ int main(int argc, char *argv[]) aboutData.addAuthor("Richard Moore",0,"rich@kde.org"); aboutData.addAuthor("Dawit Alemayehu",0,"adawit@kde.org"); - KCmdLineArgs::init(argc, argv, &aboutData); - KCmdLineArgs::addCmdLineOptions( options ); // Add our own options. + TDECmdLineArgs::init(argc, argv, &aboutData); + TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. KApplication app; - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); // execute direct kdialog command return directCommand(args); -- cgit v1.2.1