summaryrefslogtreecommitdiffstats
path: root/plugins/strigi/kbfxstrigiplugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
commit421b60af92c83b889f8903c2898f2bd07186fcd8 (patch)
treead873a24c9438baed4942fda795430a4c3dc9a9a /plugins/strigi/kbfxstrigiplugin.cpp
parent39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff)
downloadkbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz
kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip
TQt4 port kbfx
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/strigi/kbfxstrigiplugin.cpp')
-rw-r--r--plugins/strigi/kbfxstrigiplugin.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/strigi/kbfxstrigiplugin.cpp b/plugins/strigi/kbfxstrigiplugin.cpp
index dd9471b..8039fa4 100644
--- a/plugins/strigi/kbfxstrigiplugin.cpp
+++ b/plugins/strigi/kbfxstrigiplugin.cpp
@@ -23,8 +23,8 @@
#include <kservice.h>
#include <kservicegroup.h>
#include <kdebug.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kurl.h>
#include "kbfxstrigiplugin.h"
@@ -107,16 +107,16 @@ view ()
}
-QString
+TQString
name ()
{
- return QString ( "Strigi" );
+ return TQString ( "Strigi" );
}
-QString
+TQString
type ()
{
- return QString ( "Stub Type" );
+ return TQString ( "Stub Type" );
}
@@ -129,13 +129,13 @@ id ()
KbfxDataGroup *
-search ( QString _keyword )
+search ( TQString _keyword )
{
KbfxDataGroup *datagroup = new KbfxDataGroup ();
datagroup->setName ( "Strigi" );
- QString socketpath = QDir::homeDirPath () + "/.strigi/socket";
+ TQString socketpath = TQDir::homeDirPath () + "/.strigi/socket";
startDaemon ();
kdDebug() << socketpath << endl;
AsyncSocketClient socket;
@@ -165,13 +165,13 @@ search ( QString _keyword )
jstreams::IndexedDocument hit = hits.hits[i];
KbfxDataSource *data = new KbfxDataSource ();
- QString name;
+ TQString name;
std::map < std::string, std::string >::const_iterator it =
- hits.hits[i].properties.find ( "title" );
+ hits.hits[i].properties.tqfind ( "title" );
- QString filename ( hits.hits[i].uri.c_str () );
+ TQString filename ( hits.hits[i].uri.c_str () );
- if ( filename.contains ( ".tar." ) > 0 )
+ if ( filename.tqcontains ( ".tar." ) > 0 )
{
filename = "tar:" + filename;
kdDebug() << filename << endl;
@@ -183,7 +183,7 @@ search ( QString _keyword )
}
else
{
- uint pos = hits.hits[i].uri.rfind ( '/' );
+ uint pos = hits.hits[i].uri.rtqfind ( '/' );
if ( pos == std::string::npos )
{
name = hits.hits[i].uri;
@@ -203,9 +203,9 @@ search ( QString _keyword )
- QString iconname =
+ TQString iconname =
KMimeType::mimeType ( hits.hits[i].mimetype.c_str () )->
- icon ( QString::null, 0 );
+ icon ( TQString(), 0 );
data->setIconPath ( iconname );
datagroup->addItem ( data );