diff options
Diffstat (limited to 'tools/kfile-plugins/gnumeric')
-rw-r--r-- | tools/kfile-plugins/gnumeric/kfile_gnumeric.cpp | 40 | ||||
-rw-r--r-- | tools/kfile-plugins/gnumeric/kfile_gnumeric.h | 9 |
2 files changed, 25 insertions, 24 deletions
diff --git a/tools/kfile-plugins/gnumeric/kfile_gnumeric.cpp b/tools/kfile-plugins/gnumeric/kfile_gnumeric.cpp index 8d4b7928..ad29c130 100644 --- a/tools/kfile-plugins/gnumeric/kfile_gnumeric.cpp +++ b/tools/kfile-plugins/gnumeric/kfile_gnumeric.cpp @@ -24,19 +24,19 @@ #include <kgenericfactory.h> #include <kfilterdev.h> -#include <qdom.h> -#include <qfile.h> -#include <qdatetime.h> +#include <tqdom.h> +#include <tqfile.h> +#include <tqdatetime.h> #include <kdebug.h> typedef KGenericFactory<GnumericPlugin> GnumericFactory; K_EXPORT_COMPONENT_FACTORY(kfile_gnumeric, GnumericFactory( "kfile_gnumeric" )) -GnumericPlugin::GnumericPlugin(QObject *parent, const char *name, - const QStringList &args) +GnumericPlugin::GnumericPlugin(TQObject *tqparent, const char *name, + const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { init(); } @@ -51,11 +51,11 @@ void GnumericPlugin::init() KFileMimeTypeInfo::ItemInfo* item; - item = addItemInfo(group, "Author", i18n("Author"), QVariant::String); + item = addItemInfo(group, "Author", i18n("Author"), TQVariant::String); setHint(item, KFileMimeTypeInfo::Author); - item = addItemInfo(group, "Title", i18n("Title"), QVariant::String); + item = addItemInfo(group, "Title", i18n("Title"), TQVariant::String); setHint(item, KFileMimeTypeInfo::Name); - item = addItemInfo(group, "Abstract", i18n("Abstract"), QVariant::String); + item = addItemInfo(group, "Abstract", i18n("Abstract"), TQVariant::String); setHint(item, KFileMimeTypeInfo::Description); } @@ -65,7 +65,7 @@ bool GnumericPlugin::readInfo( KFileMetaInfo& info, uint what) return false; KFileMetaInfoGroup group = appendGroup(info, "DocumentInfo"); - QIODevice* in = KFilterDev::deviceForFile(info.path(),"application/x-gzip"); + TQIODevice* in = KFilterDev::deviceForFile(info.path(),"application/x-gzip"); if ( !in ) { kdError() << "Cannot create device for uncompressing! Aborting!" << endl; @@ -78,20 +78,20 @@ bool GnumericPlugin::readInfo( KFileMetaInfo& info, uint what) delete in; return false; } - QDomDocument doc; + TQDomDocument doc; doc.setContent( in ); in->close(); - QDomElement docElem = doc.documentElement(); - QDomNode summary = docElem.namedItem("gmr:Summary"); - QDomNode gmr_item = summary.namedItem("gmr:Item"); - QString author; - QString title; - QString abstract; + TQDomElement docElem = doc.documentElement(); + TQDomNode summary = docElem.namedItem("gmr:Summary"); + TQDomNode gmr_item = summary.namedItem("gmr:Item"); + TQString author; + TQString title; + TQString abstract; while( !gmr_item.isNull() ) { - QDomNode gmr_name = gmr_item.namedItem("gmr:name"); - QDomNode gmr_value = gmr_item.namedItem("gmr:val-string"); + TQDomNode gmr_name = gmr_item.namedItem("gmr:name"); + TQDomNode gmr_value = gmr_item.namedItem("gmr:val-string"); if (gmr_name.toElement().text() == "title") { title=gmr_value.toElement().text(); @@ -114,7 +114,7 @@ bool GnumericPlugin::readInfo( KFileMetaInfo& info, uint what) return true; } -QString GnumericPlugin::stringItem( const QString &name ) +TQString GnumericPlugin::stringItem( const TQString &name ) { return name.isEmpty() ? i18n("*Unknown*") : name; } diff --git a/tools/kfile-plugins/gnumeric/kfile_gnumeric.h b/tools/kfile-plugins/gnumeric/kfile_gnumeric.h index 2df2d200..deeb773c 100644 --- a/tools/kfile-plugins/gnumeric/kfile_gnumeric.h +++ b/tools/kfile-plugins/gnumeric/kfile_gnumeric.h @@ -22,21 +22,22 @@ #include <kfilemetainfo.h> -class QStringList; -class QDomNode; +class TQStringList; +class TQDomNode; class GnumericPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - GnumericPlugin( QObject *parent, const char *name, const QStringList& args ); + GnumericPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); private: void init(); - QString stringItem( const QString &name ); + TQString stringItem( const TQString &name ); }; #endif |