summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:35:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 15:17:36 +0900
commit9e6e0ff97a1c51067ef5144cde7dc30031c2ac3a (patch)
tree23d39df7eecf352363a89e4ab344194e12844786 /src
parent26d900d0839aac3760b6dbf5a0e79d1a66ea4d8a (diff)
downloadgwenview-9e6e0ff97a1c51067ef5144cde7dc30031c2ac3a.tar.gz
gwenview-9e6e0ff97a1c51067ef5144cde7dc30031c2ac3a.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/gvcore/imageloader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp
index bb5d68c..a17a7a8 100644
--- a/src/gvcore/imageloader.cpp
+++ b/src/gvcore/imageloader.cpp
@@ -139,7 +139,7 @@ void DecoderThread::run() {
CancellableBuffer buffer(mRawData, this);
buffer.open(IO_ReadOnly);
- imageIO.setIODevice(TQT_TQIODEVICE(&buffer));
+ imageIO.setIODevice(&buffer);
bool ok=imageIO.read();
if (testCancel()) {
LOG("cancelled");
@@ -275,7 +275,7 @@ public:
Q_ASSERT(mRawData.size()>0);
TQBuffer buffer(mRawData);
buffer.open(IO_ReadOnly);
- mImageFormat = TQImageIO::imageFormat(TQT_TQIODEVICE(&buffer));
+ mImageFormat = TQImageIO::imageFormat(&buffer);
}
};
@@ -460,7 +460,7 @@ void ImageLoader::slotDataReceived(TDEIO::Job* job, const TQByteArray& chunk) {
// Try to determine the data type
TQBuffer buffer(d->mRawData);
buffer.open(IO_ReadOnly);
- const char* format = TQImageIO::imageFormat(TQT_TQIODEVICE(&buffer));
+ const char* format = TQImageIO::imageFormat(&buffer);
if (format) {
// This is a raster image, get the mime type now
d->mURLKind = MimeTypeUtils::KIND_RASTER_IMAGE;