summaryrefslogtreecommitdiffstats
path: root/tools/kthesaurus
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /tools/kthesaurus
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tools/kthesaurus')
-rw-r--r--tools/kthesaurus/main.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/kthesaurus/main.cc b/tools/kthesaurus/main.cc
index 6b50a81b..a7e74822 100644
--- a/tools/kthesaurus/main.cc
+++ b/tools/kthesaurus/main.cc
@@ -16,7 +16,7 @@
* *
***************************************************************************/
-#include <qstring.h>
+#include <tqstring.h>
#include <kaboutdata.h>
#include <kapplication.h>
@@ -59,22 +59,22 @@ extern "C" KOFFICETOOLS_EXPORT int kdemain(int argc, char **argv)
}
/* TODO: get selection(), not only clipboard!
- QClipboard *cb = QApplication::clipboard();
- QString text = cb->text();
+ TQClipboard *cb = TQApplication::tqclipboard();
+ TQString text = cb->text();
if( text.isNull() || text.length() > 50 ) {
// long texts are probably not supposed to be searched for
text = "";
}
*/
- QString text = "";
+ TQString text = "";
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if ( args->count() > 0 ) {
text = args->arg(0);
}
- QString command = "thesaurus_standalone"; // 'standalone' will give us different buttons
- QString mimetype = "text/plain";
- QString datatype = "QString";
+ TQString command = "thesaurus_standalone"; // 'standalone' will give us different buttons
+ TQString mimetype = "text/plain";
+ TQString datatype = TQSTRING_OBJECT_NAME_STRING;
//kdDebug() << "KThesaurus command=" << command
// << " dataType=" << info->dataType() << endl;