summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/pcx/kfile_pcx.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kfile-plugins/pcx/kfile_pcx.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-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/pcx/kfile_pcx.cpp')
-rw-r--r--kfile-plugins/pcx/kfile_pcx.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kfile-plugins/pcx/kfile_pcx.cpp b/kfile-plugins/pcx/kfile_pcx.cpp
index a7468a57..5dceec9d 100644
--- a/kfile-plugins/pcx/kfile_pcx.cpp
+++ b/kfile-plugins/pcx/kfile_pcx.cpp
@@ -22,14 +22,14 @@
#include <kgenericfactory.h>
#include <kdebug.h>
-#include <qdatastream.h>
-#include <qfile.h>
+#include <tqdatastream.h>
+#include <tqfile.h>
typedef KGenericFactory<KPcxPlugin> PcxFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_pcx, PcxFactory("kfile_pcx"))
-QDataStream &operator>>( QDataStream &s, PALETTE &pal )
+TQDataStream &operator>>( TQDataStream &s, PALETTE &pal )
{
for ( int i=0; i<16; ++i )
s >> pal.p[ i ].r >> pal.p[ i ].g >> pal.p[ i ].b;
@@ -37,7 +37,7 @@ QDataStream &operator>>( QDataStream &s, PALETTE &pal )
return s;
}
-QDataStream &operator>>( QDataStream &s, PCXHEADER &ph )
+TQDataStream &operator>>( TQDataStream &s, PCXHEADER &ph )
{
s >> ph.Manufacturer;
s >> ph.Version;
@@ -56,8 +56,8 @@ QDataStream &operator>>( QDataStream &s, PCXHEADER &ph )
return s;
}
-KPcxPlugin::KPcxPlugin( QObject *parent, const char *name,
- const QStringList &args ) : KFilePlugin( parent, name, args )
+KPcxPlugin::KPcxPlugin( TQObject *parent, const char *name,
+ const TQStringList &args ) : KFilePlugin( parent, name, args )
{
kdDebug(7034) << "PCX file meta info plugin" << endl;
KFileMimeTypeInfo* info = addMimeTypeInfo( "image/x-pcx" );
@@ -67,17 +67,17 @@ KPcxPlugin::KPcxPlugin( QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
item = addItemInfo( group, "Dimensions", i18n( "Dimensions" ),
- QVariant::Size );
+ TQVariant::Size );
setHint( item, KFileMimeTypeInfo::Size );
setUnit( item, KFileMimeTypeInfo::Pixels );
item = addItemInfo( group, "BitDepth", i18n( "Bit Depth" ),
- QVariant::Int );
+ TQVariant::Int );
setUnit( item, KFileMimeTypeInfo::BitsPerPixel );
item = addItemInfo( group, "Resolution", i18n( "Resolution" ),
- QVariant::Size );
+ TQVariant::Size );
setUnit( item, KFileMimeTypeInfo::DotsPerInch );
item = addItemInfo( group, "Compression", i18n( "Compression" ),
- QVariant::String );
+ TQVariant::String );
}
bool KPcxPlugin::readInfo( KFileMetaInfo& info, uint )
@@ -87,12 +87,12 @@ bool KPcxPlugin::readInfo( KFileMetaInfo& info, uint )
struct PCXHEADER header;
- QFile f( info.path() );
+ TQFile f( info.path() );
if ( !f.open( IO_ReadOnly ) )
return false;
- QDataStream s( &f );
- s.setByteOrder( QDataStream::LittleEndian );
+ TQDataStream s( &f );
+ s.setByteOrder( TQDataStream::LittleEndian );
s >> header;
@@ -102,9 +102,9 @@ bool KPcxPlugin::readInfo( KFileMetaInfo& info, uint )
KFileMetaInfoGroup group = appendGroup( info, "General" );
- appendItem( group, "Dimensions", QSize( w, h ) );
+ appendItem( group, "Dimensions", TQSize( w, h ) );
appendItem( group, "BitDepth", bpp );
- appendItem( group, "Resolution", QSize( header.HDpi, header.YDpi ) );
+ appendItem( group, "Resolution", TQSize( header.HDpi, header.YDpi ) );
if ( header.Encoding == 1 )
appendItem( group, "Compression", i18n( "Yes (RLE)" ) );
else