diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kfile-plugins/folder | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/folder')
-rw-r--r-- | kfile-plugins/folder/kfile_folder.cpp | 20 | ||||
-rw-r--r-- | kfile-plugins/folder/kfile_folder.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/kfile-plugins/folder/kfile_folder.cpp b/kfile-plugins/folder/kfile_folder.cpp index 911a2e5..fe4ea9a 100644 --- a/kfile-plugins/folder/kfile_folder.cpp +++ b/kfile-plugins/folder/kfile_folder.cpp @@ -23,15 +23,15 @@ #include <kgenericfactory.h> #include <kio/global.h> -#include <qfileinfo.h> -#include <qdir.h> +#include <tqfileinfo.h> +#include <tqdir.h> typedef KGenericFactory<KFolderPlugin> KFolderFactory; K_EXPORT_COMPONENT_FACTORY(kfile_folder, KFolderFactory( "kfile_folder" )) -KFolderPlugin::KFolderPlugin(QObject *parent, const char *name, - const QStringList &args) +KFolderPlugin::KFolderPlugin(TQObject *parent, const char *name, + const TQStringList &args) : KFilePlugin(parent, name, args) { @@ -43,8 +43,8 @@ KFolderPlugin::KFolderPlugin(QObject *parent, const char *name, KFileMimeTypeInfo::ItemInfo* item; - item = addItemInfo(group, "Items", i18n("Items"), QVariant::Int); - item = addItemInfo(group, "Size", i18n("Size"), QVariant::Int); + item = addItemInfo(group, "Items", i18n("Items"), TQVariant::Int); + item = addItemInfo(group, "Size", i18n("Size"), TQVariant::Int); setUnit(item, KFileMimeTypeInfo::Bytes); } @@ -55,17 +55,17 @@ bool KFolderPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) if (info.path().isEmpty()) return false; - QDir dir; + TQDir dir; if ( !dir.cd(info.path()) ) return false; - const QPtrList<QFileInfo> *fileList = dir.entryInfoList(); + const TQPtrList<TQFileInfo> *fileList = dir.entryInfoList(); if (!fileList) return false; - QPtrListIterator<QFileInfo> list = QPtrListIterator<QFileInfo>(*fileList); + TQPtrListIterator<TQFileInfo> list = TQPtrListIterator<TQFileInfo>(*fileList); - QFileInfo* file; + TQFileInfo* file; int items = 0; KIO::filesize_t bytes = 0; diff --git a/kfile-plugins/folder/kfile_folder.h b/kfile-plugins/folder/kfile_folder.h index 602c369..96fcd16 100644 --- a/kfile-plugins/folder/kfile_folder.h +++ b/kfile-plugins/folder/kfile_folder.h @@ -29,7 +29,7 @@ class KFolderPlugin: public KFilePlugin Q_OBJECT public: - KFolderPlugin( QObject *parent, const char *name, const QStringList& args ); + KFolderPlugin( TQObject *parent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); }; |