diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kimgio/exr.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/exr.cpp')
-rw-r--r-- | kimgio/exr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kimgio/exr.cpp b/kimgio/exr.cpp index e3efe5a6a..e45812700 100644 --- a/kimgio/exr.cpp +++ b/kimgio/exr.cpp @@ -39,13 +39,13 @@ #include <kgenericfactory.h> #include <kdebug.h> -#include <qimage.h> -#include <qcstring.h> -#include <qfile.h> -#include <qdatetime.h> -#include <qdict.h> -#include <qvalidator.h> -#include <qcolor.h> +#include <tqimage.h> +#include <tqcstring.h> +#include <tqfile.h> +#include <tqdatetime.h> +#include <tqdict.h> +#include <tqvalidator.h> +#include <tqcolor.h> #include "exr.h" @@ -116,14 +116,14 @@ QRgb RgbaToQrgba(struct Rgba imagePixel) char (Imath::clamp ( a * 84.66f, 0.f, 255.f ) ) ); } -KDE_EXPORT void kimgio_exr_read( QImageIO *io ) +KDE_EXPORT void kimgio_exr_read( TQImageIO *io ) { try { int width, height; - // This won't work if io is not QFile ! - RgbaInputFile file (QFile::encodeName(io->fileName())); + // This won't work if io is not TQFile ! + RgbaInputFile file (TQFile::encodeName(io->fileName())); Imath::Box2i dw = file.dataWindow(); width = dw.max.x - dw.min.x + 1; @@ -135,7 +135,7 @@ KDE_EXPORT void kimgio_exr_read( QImageIO *io ) file.setFrameBuffer (&pixels[0][0] - dw.min.x - dw.min.y * width, 1, width); file.readPixels (dw.min.y, dw.max.y); - QImage image(width, height, 32, 0, QImage::BigEndian); + TQImage image(width, height, 32, 0, TQImage::BigEndian); if( image.isNull()) return; @@ -158,7 +158,7 @@ KDE_EXPORT void kimgio_exr_read( QImageIO *io ) } -KDE_EXPORT void kimgio_exr_write(QImageIO *) +KDE_EXPORT void kimgio_exr_write(TQImageIO *) { // TODO: stub } |