summaryrefslogtreecommitdiffstats
path: root/plugins/applications
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/applications
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/applications')
-rw-r--r--plugins/applications/kbfxplasmadataplugin.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/applications/kbfxplasmadataplugin.cpp b/plugins/applications/kbfxplasmadataplugin.cpp
index cffb72f..070bda2 100644
--- a/plugins/applications/kbfxplasmadataplugin.cpp
+++ b/plugins/applications/kbfxplasmadataplugin.cpp
@@ -158,16 +158,16 @@ view ()
}
-QString
+TQString
name ()
{
- return QString ( "Applications" );
+ return TQString ( "Applications" );
}
-QString
+TQString
type ()
{
- return QString ( "Stub Type" );
+ return TQString ( "Stub Type" );
}
@@ -180,7 +180,7 @@ id ()
#include <ktrader.h>
KbfxDataGroup *
-search ( QString _keyword )
+search ( TQString _keyword )
{
@@ -192,7 +192,7 @@ search ( QString _keyword )
int *count = new int;
*count = 0;
- QValueListIterator < KService::Ptr > s = offers.begin ();
+ TQValueListIterator < KService::Ptr > s = offers.begin ();
for ( ; s != offers.end (); ++s )
{
@@ -201,10 +201,10 @@ search ( QString _keyword )
if ( (*s)->noDisplay () == true )
continue;
- QString *sPtr = new QString ();
+ TQString *sPtr = new TQString ();
( *sPtr ) = ( *s )->name () + ( *s )->genericName () + ( *s )->comment ();
- if ( ( !sPtr->isNull () ) && sPtr->contains ( _keyword, false ) > 0 )
+ if ( ( !sPtr->isNull () ) && sPtr->tqcontains ( _keyword, false ) > 0 )
{
KbfxDataSource *data = new KbfxDataSource ();
data->setName ( ( *s )->name () );