diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kded/kde-menu.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kded/kde-menu.cpp')
-rw-r--r-- | kded/kde-menu.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kded/kde-menu.cpp b/kded/kde-menu.cpp index 242fcce4c..89ee5a857 100644 --- a/kded/kde-menu.cpp +++ b/kded/kde-menu.cpp @@ -18,7 +18,7 @@ #include <stdlib.h> -#include <qfile.h> +#include <tqfile.h> #include <dcopclient.h> #include <dcopref.h> @@ -50,7 +50,7 @@ static bool bPrintMenuId; static bool bPrintMenuName; static bool bHighlight; -static void result(const QString &txt) +static void result(const TQString &txt) { if (utf8) puts( txt.utf8() ); @@ -58,13 +58,13 @@ static void result(const QString &txt) puts( txt.local8Bit() ); } -static void error(int exitCode, const QString &txt) +static void error(int exitCode, const TQString &txt) { qWarning("kde-menu: %s", txt.local8Bit().data()); exit(exitCode); } -static void findMenuEntry(KServiceGroup::Ptr parent, const QString &name, const QString &menuId) +static void findMenuEntry(KServiceGroup::Ptr parent, const TQString &name, const TQString &menuId) { KServiceGroup::List list = parent->entries(true, true, false); KServiceGroup::List::ConstIterator it = list.begin(); @@ -143,11 +143,11 @@ int main(int argc, char **argv) if (args->isSet("cache-update")) { - QStringList args; + TQStringList args; args.append("--incremental"); args.append("--checkstamps"); - QString command = "kbuildsycoca"; - QCString _launcher = KApplication::launcher(); + TQString command = "kbuildsycoca"; + TQCString _launcher = KApplication::launcher(); if (!DCOPRef(_launcher, _launcher).call("kdeinit_exec_wait", command, args).isValid()) { qWarning("Can't talk to klauncher!"); @@ -157,7 +157,7 @@ int main(int argc, char **argv) } } - QString menuId = QFile::decodeName(args->arg(0)); + TQString menuId = TQFile::decodeName(args->arg(0)); KService::Ptr s = KService::serviceByMenuId(menuId); if (!s) |