summaryrefslogtreecommitdiffstats
path: root/plugins/recentstuff
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/recentstuff
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/recentstuff')
-rw-r--r--plugins/recentstuff/kbfxplasmarecentstuff.cpp44
1 files changed, 22 insertions, 22 deletions
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 <kservicegroup.h>
#include <kdebug.h>
#include <kstandarddirs.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <kbfxplasmadataplugin-common.h>
#include <kstandarddirs.h>
@@ -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 <ktrader.h>
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 () );