diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kfile-plugins/png | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/png')
-rw-r--r-- | kfile-plugins/png/kfile_png.cpp | 42 | ||||
-rw-r--r-- | kfile-plugins/png/kfile_png.h | 4 |
2 files changed, 23 insertions, 23 deletions
diff --git a/kfile-plugins/png/kfile_png.cpp b/kfile-plugins/png/kfile_png.cpp index c3e54b66..531fdfe3 100644 --- a/kfile-plugins/png/kfile_png.cpp +++ b/kfile-plugins/png/kfile_png.cpp @@ -27,11 +27,11 @@ #include <kgenericfactory.h> #include <kdebug.h> -#include <qcstring.h> -#include <qfile.h> -#include <qdatetime.h> -#include <qdict.h> -#include <qvalidator.h> +#include <tqcstring.h> +#include <tqfile.h> +#include <tqdatetime.h> +#include <tqdict.h> +#include <tqvalidator.h> #include <zlib.h> // some defines to make it easier @@ -87,8 +87,8 @@ typedef KGenericFactory<KPngPlugin> PngFactory; K_EXPORT_COMPONENT_FACTORY(kfile_png, PngFactory("kfile_png")) -KPngPlugin::KPngPlugin(QObject *parent, const char *name, - const QStringList &args) +KPngPlugin::KPngPlugin(TQObject *parent, const char *name, + const TQStringList &args) : KFilePlugin(parent, name, args) { kdDebug(7034) << "png plugin\n"; @@ -101,32 +101,32 @@ KPngPlugin::KPngPlugin(QObject *parent, const char *name, // comment group group = addGroupInfo(info, "Comment", i18n("Comment")); - addVariableInfo(group, QVariant::String, 0); + addVariableInfo(group, TQVariant::String, 0); // technical group group = addGroupInfo(info, "Technical", i18n("Technical Details")); - item = addItemInfo(group, "Dimensions", i18n("Dimensions"), QVariant::Size); + item = addItemInfo(group, "Dimensions", i18n("Dimensions"), TQVariant::Size); setHint( item, KFileMimeTypeInfo::Size ); setUnit(item, KFileMimeTypeInfo::Pixels); - item = addItemInfo(group, "BitDepth", i18n("Bit Depth"), QVariant::Int); + item = addItemInfo(group, "BitDepth", i18n("Bit Depth"), TQVariant::Int); setUnit(item, KFileMimeTypeInfo::BitsPerPixel); - addItemInfo(group, "ColorMode", i18n("Color Mode"), QVariant::String); - addItemInfo(group, "Compression", i18n("Compression"), QVariant::String); - addItemInfo(group, "InterlaceMode", i18n("Interlace Mode"),QVariant::String); + addItemInfo(group, "ColorMode", i18n("Color Mode"), TQVariant::String); + addItemInfo(group, "Compression", i18n("Compression"), TQVariant::String); + addItemInfo(group, "InterlaceMode", i18n("Interlace Mode"),TQVariant::String); } bool KPngPlugin::readInfo( KFileMetaInfo& info, uint what) { if ( info.path().isEmpty() ) // remote file return false; - QFile f(info.path()); + TQFile f(info.path()); if ( !f.open(IO_ReadOnly) ) return false; - QIODevice::Offset fileSize = f.size(); + TQIODevice::Offset fileSize = f.size(); if (fileSize < 29) return false; // the technical group will be read from the first 29 bytes. If the file @@ -176,7 +176,7 @@ bool KPngPlugin::readInfo( KFileMetaInfo& info, uint what) KFileMetaInfoGroup techgroup = appendGroup(info, "Technical"); - appendItem(techgroup, "Dimensions", QSize(x, y)); + appendItem(techgroup, "Dimensions", TQSize(x, y)); appendItem(techgroup, "BitDepth", bpp); appendItem(techgroup, "ColorMode", (type < sizeof(colors)/sizeof(colors[0])) @@ -227,7 +227,7 @@ bool KPngPlugin::readInfo( KFileMetaInfo& info, uint what) if (8+index+keysize>=fileSize) goto end; - QByteArray arr; + TQByteArray arr; if(!strncmp((char*)CHUNK_TYPE(data,index), "zTXt", 4)) { kdDebug(7034) << "We found a zTXt field\n"; // we get the compression method after the key @@ -288,7 +288,7 @@ bool KPngPlugin::readInfo( KFileMetaInfo& info, uint what) goto end; arr.resize(textsize); - arr = QByteArray(textsize).duplicate((const char*)text, + arr = TQByteArray(textsize).duplicate((const char*)text, textsize); } else { @@ -296,11 +296,11 @@ bool KPngPlugin::readInfo( KFileMetaInfo& info, uint what) goto end; } appendItem(commentGroup, - QString(reinterpret_cast<char*>(key)), - QString(arr)); + TQString(reinterpret_cast<char*>(key)), + TQString(arr)); kdDebug(7034) << "adding " << key << " / " - << QString(arr) << endl; + << TQString(arr) << endl; index += CHUNK_SIZE(data, index) + CHUNK_HEADER_SIZE; } diff --git a/kfile-plugins/png/kfile_png.h b/kfile-plugins/png/kfile_png.h index 0873d55d..54e626de 100644 --- a/kfile-plugins/png/kfile_png.h +++ b/kfile-plugins/png/kfile_png.h @@ -24,14 +24,14 @@ #include <kfilemetainfo.h> #include <kurl.h> -class QStringList; +class TQStringList; class KPngPlugin: public KFilePlugin { Q_OBJECT public: - KPngPlugin( QObject *parent, const char *name, const QStringList& preferredItems ); + KPngPlugin( TQObject *parent, const char *name, const TQStringList& preferredItems ); virtual bool readInfo( KFileMetaInfo& info, uint ); }; |