diff options
Diffstat (limited to 'kipi-plugins/rawconverter/actionthread.cpp')
-rw-r--r-- | kipi-plugins/rawconverter/actionthread.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kipi-plugins/rawconverter/actionthread.cpp b/kipi-plugins/rawconverter/actionthread.cpp index 52a41b5..ad85b81 100644 --- a/kipi-plugins/rawconverter/actionthread.cpp +++ b/kipi-plugins/rawconverter/actionthread.cpp @@ -32,11 +32,11 @@ extern "C" #include <unistd.h> } -// Qt includes. +// TQt includes. -#include <qapplication.h> -#include <qdir.h> -#include <qdeepcopy.h> +#include <tqapplication.h> +#include <tqdir.h> +#include <tqdeepcopy.h> // KDE includes. @@ -54,8 +54,8 @@ extern "C" namespace KIPIRawConverterPlugin { -ActionThread::ActionThread(QObject *parent) - : QThread(), m_parent(parent) +ActionThread::ActionThread(TQObject *tqparent) + : TQThread(), m_parent(tqparent) { } @@ -80,7 +80,7 @@ void ActionThread::identifyRawFiles(const KURL::List& urlList, bool full) it != urlList.end(); ++it ) { Task *t = new Task; - t->filePath = QDeepCopy<QString>((*it).path()); //deep copy + t->filePath = TQDeepCopy<TQString>((*it).path()); //deep copy t->action = full ? IDENTIFY_FULL : IDENTIFY; m_taskQueue.enqueue(t); } @@ -113,7 +113,7 @@ void ActionThread::processRawFiles(const KURL::List& urlList) it != urlList.end(); ++it ) { Task *t = new Task; - t->filePath = QDeepCopy<QString>((*it).path()); //deep copy + t->filePath = TQDeepCopy<TQString>((*it).path()); //deep copy t->outputFormat = m_outputFormat; t->decodingSettings = m_rawDecodingSettings; t->action = PROCESS; @@ -127,7 +127,7 @@ void ActionThread::processHalfRawFiles(const KURL::List& urlList) it != urlList.end(); ++it ) { Task *t = new Task; - t->filePath = QDeepCopy<QString>((*it).path()); //deep copy + t->filePath = TQDeepCopy<TQString>((*it).path()); //deep copy t->outputFormat = m_outputFormat; t->decodingSettings = m_rawDecodingSettings; t->action = PREVIEW; @@ -148,7 +148,7 @@ void ActionThread::run() Task *t = m_taskQueue.dequeue(); if (!t) continue; - QString errString; + TQString errString; EventData *d = new EventData; @@ -158,47 +158,47 @@ void ActionThread::run() case IDENTIFY_FULL: { // Get embedded RAW file thumbnail. - QImage image; + TQImage image; m_dcrawIface.loadDcrawPreview(image, t->filePath); // Identify Camera model. KDcrawIface::DcrawInfoContainer info; m_dcrawIface.rawFileIdentify(info, t->filePath); - QString identify = i18n("Cannot identify Raw image"); + TQString identify = i18n("Cannot identify Raw image"); if (info.isDecodable) { if (t->action == IDENTIFY) - identify = info.make + QString("-") + info.model; + identify = info.make + TQString("-") + info.model; else { - identify = i18n("Make: %1\n").arg(info.make); - identify.append(i18n("Model: %1\n").arg(info.model)); + identify = i18n("Make: %1\n").tqarg(info.make); + identify.append(i18n("Model: %1\n").tqarg(info.model)); if (info.dateTime.isValid()) { identify.append(i18n("Created: %1\n") - .arg(KGlobal::locale()->formatDateTime(info.dateTime, true, true))); + .tqarg(KGlobal::locale()->formatDateTime(info.dateTime, true, true))); } if (info.aperture != -1.0) { - identify.append(i18n("Aperture: f/%1\n").arg(QString::number(info.aperture))); + identify.append(i18n("Aperture: f/%1\n").tqarg(TQString::number(info.aperture))); } if (info.focalLength != -1.0) { - identify.append(i18n("Focal: %1 mm\n").arg(info.focalLength)); + identify.append(i18n("Focal: %1 mm\n").tqarg(info.focalLength)); } if (info.exposureTime != -1.0) { - identify.append(i18n("Exposure: 1/%1 s\n").arg(info.exposureTime)); + identify.append(i18n("Exposure: 1/%1 s\n").tqarg(info.exposureTime)); } if (info.sensitivity != -1) { - identify.append(i18n("Sensitivity: %1 ISO").arg(info.sensitivity)); + identify.append(i18n("Sensitivity: %1 ISO").tqarg(info.sensitivity)); } } } @@ -209,7 +209,7 @@ void ActionThread::run() r->image = image; r->message = identify; r->success = true; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, r)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, r)); break; } @@ -218,9 +218,9 @@ void ActionThread::run() d->action = PREVIEW; d->filePath = t->filePath; d->starting = true; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); - QString destPath; + TQString destPath; bool result = m_dcrawIface.decodeHalfRAWImage(t->filePath, destPath, t->outputFormat, t->decodingSettings); @@ -229,7 +229,7 @@ void ActionThread::run() r->filePath = t->filePath; r->destPath = destPath; r->success = result; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, r)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, r)); break; } @@ -238,9 +238,9 @@ void ActionThread::run() d->action = PROCESS; d->filePath = t->filePath; d->starting = true; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, d)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, d)); - QString destPath; + TQString destPath; bool result = m_dcrawIface.decodeRAWImage(t->filePath, destPath, t->outputFormat, t->decodingSettings); @@ -249,7 +249,7 @@ void ActionThread::run() r->filePath = t->filePath; r->destPath = destPath; r->success = result; - QApplication::postEvent(m_parent, new QCustomEvent(QEvent::User, r)); + TQApplication::postEvent(m_parent, new TQCustomEvent(TQEvent::User, r)); break; } |