summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/tiff
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kfile-plugins/tiff
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/tiff')
-rw-r--r--kfile-plugins/tiff/kfile_tiff.cpp8
-rw-r--r--kfile-plugins/tiff/kfile_tiff.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/kfile-plugins/tiff/kfile_tiff.cpp b/kfile-plugins/tiff/kfile_tiff.cpp
index ce55e5b3..7e1e86be 100644
--- a/kfile-plugins/tiff/kfile_tiff.cpp
+++ b/kfile-plugins/tiff/kfile_tiff.cpp
@@ -34,8 +34,8 @@ typedef KGenericFactory<KTiffPlugin> TiffFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_tiff, TiffFactory("kfile_tiff"))
-KTiffPlugin::KTiffPlugin(TQObject *parent, const char *name,
- const TQStringList &args) : KFilePlugin(parent, name, args)
+KTiffPlugin::KTiffPlugin(TQObject *tqparent, const char *name,
+ const TQStringList &args) : KFilePlugin(tqparent, name, args)
{
kdDebug(7034) << "TIFF file meta info plugin" << endl;
KFileMimeTypeInfo* info = addMimeTypeInfo( "image/tiff" );
@@ -90,7 +90,7 @@ KTiffPlugin::KTiffPlugin(TQObject *parent, const char *name,
m_colorMode.insert(PHOTOMETRIC_PALETTE,
new TQString(I18N_NOOP("Palette color")));
m_colorMode.insert(PHOTOMETRIC_MASK,
- new TQString(I18N_NOOP("Transparency mask")));
+ new TQString(I18N_NOOP("Transparency tqmask")));
m_colorMode.insert(PHOTOMETRIC_SEPARATED,
new TQString(I18N_NOOP("Color separations")));
m_colorMode.insert(PHOTOMETRIC_YCBCR,
@@ -248,7 +248,7 @@ bool KTiffPlugin::readInfo(KFileMetaInfo& info, uint)
int imageBpp = bitsPerSample*samplesPerPixel;
if (imageAlpha && colorMode==PHOTOMETRIC_RGB)
- m_colorMode.replace(PHOTOMETRIC_RGB, new TQString(I18N_NOOP("RGBA")));
+ m_colorMode.tqreplace(PHOTOMETRIC_RGB, new TQString(I18N_NOOP("RGBA")));
KFileMetaInfoGroup group = appendGroup(info, "General");
if (description)
diff --git a/kfile-plugins/tiff/kfile_tiff.h b/kfile-plugins/tiff/kfile_tiff.h
index 54087ea4..26ad4765 100644
--- a/kfile-plugins/tiff/kfile_tiff.h
+++ b/kfile-plugins/tiff/kfile_tiff.h
@@ -27,9 +27,10 @@
class KTiffPlugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KTiffPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ KTiffPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
private: