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/recentstuff/kbfxplasmarecentstuff.cpp | 44 +++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'plugins/recentstuff') diff --git a/plugins/recentstuff/kbfxplasmarecentstuff.cpp b/plugins/recentstuff/kbfxplasmarecentstuff.cpp index b0c4f8c..0f1c8fb 100644 --- a/plugins/recentstuff/kbfxplasmarecentstuff.cpp +++ b/plugins/recentstuff/kbfxplasmarecentstuff.cpp @@ -24,8 +24,8 @@ #include #include #include -#include -#include +#include +#include #include #include @@ -42,19 +42,19 @@ view () glist->setIcon ( "newstuff" ); appGroup->setName ( "RecentStuff" ); - QString path = + TQString path = KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/"; - QDir d ( path ); - d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); - d.setSorting ( QDir::Size | QDir::Reversed ); + TQDir d ( path ); + d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks ); + d.setSorting ( TQDir::Size | TQDir::Reversed ); d.setNameFilter ( "*.desktop" ); - const QFileInfoList *list = d.entryInfoList (); - QFileInfoListIterator it ( *list ); - QFileInfo *fi; + const TQFileInfoList *list = d.entryInfoList (); + TQFileInfoListIterator it ( *list ); + TQFileInfo *fi; while ( ( fi = it.current () ) != 0 ) { @@ -84,16 +84,16 @@ view () } -QString +TQString name () { - return QString ( "RecentStuff" ); + return TQString ( "RecentStuff" ); } -QString +TQString type () { - return QString ( "Stub Type" ); + return TQString ( "Stub Type" ); } @@ -107,7 +107,7 @@ id () #include KbfxDataGroup * -search ( QString _keyword ) +search ( TQString _keyword ) { KbfxDataGroup *appGroup = new KbfxDataGroup (); // KbfxDataGroupList *glist = new KbfxDataGroupList (); @@ -115,21 +115,21 @@ search ( QString _keyword ) - QString path = + TQString path = KStandardDirs ().localkdedir () + "/share/apps/RecentDocuments/"; - QDir d ( path ); - d.setFilter ( QDir::Files | QDir::Hidden | QDir::NoSymLinks ); - d.setSorting ( QDir::Size | QDir::Reversed ); + TQDir d ( path ); + d.setFilter ( TQDir::Files | TQDir::Hidden | TQDir::NoSymLinks ); + d.setSorting ( TQDir::Size | TQDir::Reversed ); d.setNameFilter ( "*.desktop" ); - const QFileInfoList *list = d.entryInfoList (); - QFileInfoListIterator it ( *list ); - QFileInfo *fi; + const TQFileInfoList *list = d.entryInfoList (); + TQFileInfoListIterator it ( *list ); + TQFileInfo *fi; while ( ( fi = it.current () ) != 0 ) { - if ( fi->fileName ().contains ( _keyword ) > 0 ) + if ( fi->fileName ().tqcontains ( _keyword ) > 0 ) { KDesktopFile *desktop = new KDesktopFile ( fi->filePath () ); -- cgit v1.2.3