summaryrefslogtreecommitdiffstats
path: root/kdesudo/main.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 22:11:13 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-26 22:11:13 +0000
commitd0f4d15131676239a89a65ad97f9d7daf5b057f7 (patch)
treea980f02081de6a9ef352c21d15b5a0550b9275eb /kdesudo/main.cpp
parentb166c693b4466d83d64475e0980904bc15de55e1 (diff)
downloadtdesudo-d0f4d15131676239a89a65ad97f9d7daf5b057f7.tar.gz
tdesudo-d0f4d15131676239a89a65ad97f9d7daf5b057f7.zip
TQt4 port kdesudo
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesudo@1238441 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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())
{