diff options
Diffstat (limited to 'languages/cpp/app_templates/kfileplugin')
-rw-r--r-- | languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp | 14 | ||||
-rw-r--r-- | languages/cpp/app_templates/kfileplugin/kfile_plugin.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp index 3e6b849a..db259cb3 100644 --- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp +++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.cpp @@ -6,15 +6,15 @@ #include <kgenericfactory.h> //#include <kio/global.h> -//#include <qfileinfo.h> -//#include <qdir.h> +//#include <tqfileinfo.h> +//#include <tqdir.h> typedef KGenericFactory<%{APPNAME}Plugin> %{APPNAME}Factory; K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAMELC}" )) -%{APPNAME}Plugin::%{APPNAME}Plugin(QObject *parent, const char *name, - const QStringList &args) +%{APPNAME}Plugin::%{APPNAME}Plugin(TQObject *parent, const char *name, + const TQStringList &args) : KFilePlugin(parent, name, args) { //add the mimetype here - example: @@ -28,12 +28,12 @@ K_EXPORT_COMPONENT_FACTORY(kfile_%{APPNAME}, %{APPNAME}Factory( "kfile_%{APPNAME KFileMimeTypeInfo::ItemInfo* item; // our new items in the group - 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::KiloBytes); // strings are possible, too: - //addItemInfo(group, "Text", i18n("Document Type"), QVariant::String); + //addItemInfo(group, "Text", i18n("Document Type"), TQVariant::String); } bool %{APPNAME}Plugin::readInfo( KFileMetaInfo& info, uint /*what*/) diff --git a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h index 358b4dcb..8a0355f1 100644 --- a/languages/cpp/app_templates/kfileplugin/kfile_plugin.h +++ b/languages/cpp/app_templates/kfileplugin/kfile_plugin.h @@ -15,7 +15,7 @@ class %{APPNAME}Plugin: public KFilePlugin Q_OBJECT public: - %{APPNAME}Plugin( QObject *parent, const char *name, const QStringList& args ); + %{APPNAME}Plugin( TQObject *parent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); }; |