From 421b60af92c83b889f8903c2898f2bd07186fcd8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 5 May 2011 22:07:15 +0000 Subject: 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 --- plugins/applications/kbfxplasmadataplugin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/applications') 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 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 () ); -- cgit v1.2.1