summaryrefslogtreecommitdiffstats
path: root/kdesudo/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdesudo/main.cpp')
-rw-r--r--kdesudo/main.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kdesudo/main.cpp b/kdesudo/main.cpp
index 7306629..6ef0074 100644
--- a/kdesudo/main.cpp
+++ b/kdesudo/main.cpp
@@ -31,8 +31,8 @@
#include <kstandarddirs.h>
#include <kprocess.h>
#include <kdebug.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
static const char *description =
I18N_NOOP("KdeSudo");
@@ -72,12 +72,12 @@ int main(int argc, char **argv)
KApplication a;
- QString executable;
- QStringList executableList;
- QString arg;
- QString command;
- QStringList commandlist;
- QString icon;
+ TQString executable;
+ TQStringList executableList;
+ TQString arg;
+ TQString command;
+ TQStringList commandlist;
+ TQString icon;
bool withIgnoreButton = args->isSet("ignorebutton");
@@ -89,16 +89,16 @@ int main(int argc, char **argv)
if (executable.isEmpty())
{
command = args->arg(0);
- commandlist = QStringList::split(QChar(' '), command);
+ commandlist = TQStringList::split(TQChar(' '), command);
executable = commandlist[0];
}
}
/* We have to make sure the executable is only the binary name */
- executableList = QStringList::split(" ", executable);
+ executableList = TQStringList::split(" ", executable);
executable = executableList[0];
- executableList = QStringList::split("/", executable);
+ executableList = TQStringList::split("/", executable);
int i = executableList.count() - 1;
executable = executableList[i];
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
KGlobal::dirs()->addResourceDir("apps","/usr/share/applications/kde");
KGlobal::dirs()->addResourceDir("apps","/usr/share/applications");
- QString deskFilePath = KGlobal::dirs()->findResource("apps",executable + ".desktop");
+ TQString deskFilePath = KGlobal::dirs()->findResource("apps",executable + ".desktop");
KDesktopFile desktopFile(deskFilePath,true);
/* icon parsing */
@@ -114,13 +114,13 @@ int main(int argc, char **argv)
icon = args->getOption("i");
else
{
- QString iconName = desktopFile.readIcon();
+ TQString iconName = desktopFile.readIcon();
icon = KGlobal::iconLoader()->iconPath(iconName, -1* KIcon::StdSizes(KIcon::SizeHuge), true);
}
/* generic name parsing */
- QString name = desktopFile.readName();
- QString genericName = desktopFile.readGenericName();
+ TQString name = desktopFile.readName();
+ TQString genericName = desktopFile.readGenericName();
if (!name.isEmpty())
{