diff options
Diffstat (limited to 'plugins/recentstuff')
-rw-r--r-- | plugins/recentstuff/kbfxplasmarecentstuff.cpp | 44 |
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 () ); |