summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp')
-rw-r--r--kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp b/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
index caed54f..4adea96 100644
--- a/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
+++ b/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp
@@ -20,10 +20,10 @@
*
* ============================================================ */
-// Include files for Qt
+// Include files for TQt
-#include <qpainter.h>
-#include <qlistview.h>
+#include <tqpainter.h>
+#include <tqlistview.h>
// Include files for KDE
@@ -36,9 +36,9 @@
namespace KIPIBatchProcessImagesPlugin
{
-BatchProcessImagesItem::BatchProcessImagesItem(QListView * parent, QString const & pathSrc,
- QString const & nameSrc, QString const & nameDest, QString const & result)
- : KListViewItem( parent, "", nameSrc, nameDest, result),
+BatchProcessImagesItem::BatchProcessImagesItem(TQListView * tqparent, TQString const & pathSrc,
+ TQString const & nameSrc, TQString const & nameDest, TQString const & result)
+ : KListViewItem( tqparent, "", nameSrc, nameDest, result),
_pathSrc(pathSrc), _nameSrc(nameSrc), _nameDest(nameDest), _result(result),
_overwrote( false ),
_reverseSort( false )
@@ -50,36 +50,36 @@ BatchProcessImagesItem::~BatchProcessImagesItem()
{
}
-QString BatchProcessImagesItem::pathSrc() { return _pathSrc; }
-QString BatchProcessImagesItem::nameSrc() { return _nameSrc; }
-QString BatchProcessImagesItem::nameDest() { return _nameDest; }
-QString BatchProcessImagesItem::result() { return _result; }
-QString BatchProcessImagesItem::error() { return _error; }
-QString BatchProcessImagesItem::outputMess() { return _outputMess; }
+TQString BatchProcessImagesItem::pathSrc() { return _pathSrc; }
+TQString BatchProcessImagesItem::nameSrc() { return _nameSrc; }
+TQString BatchProcessImagesItem::nameDest() { return _nameDest; }
+TQString BatchProcessImagesItem::result() { return _result; }
+TQString BatchProcessImagesItem::error() { return _error; }
+TQString BatchProcessImagesItem::outputMess() { return _outputMess; }
-void BatchProcessImagesItem::changeResult(QString text) { setText(3, text); }
-void BatchProcessImagesItem::changeError(QString text) { _error = text; }
-void BatchProcessImagesItem::changeNameDest(QString text) { _nameDest = text; setText(2, _nameDest); }
-void BatchProcessImagesItem::changeOutputMess(QString text) { _outputMess.append(text); }
+void BatchProcessImagesItem::changeResult(TQString text) { setText(3, text); }
+void BatchProcessImagesItem::changeError(TQString text) { _error = text; }
+void BatchProcessImagesItem::changeNameDest(TQString text) { _nameDest = text; setText(2, _nameDest); }
+void BatchProcessImagesItem::changeOutputMess(TQString text) { _outputMess.append(text); }
-void BatchProcessImagesItem::paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
+void BatchProcessImagesItem::paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
{
- QColorGroup _cg( cg );
+ TQColorGroup _cg( cg );
if (text(3) != i18n("OK") && !text(3).isEmpty() )
{
- _cg.setColor( QColorGroup::Text, Qt::red );
- KListViewItem::paintCell( p, _cg, column, width, alignment );
+ _cg.setColor( TQColorGroup::Text, TQt::red );
+ KListViewItem::paintCell( p, _cg, column, width, tqalignment );
return;
}
if (text(3) == i18n("OK") )
{
- _cg.setColor( QColorGroup::Text, Qt::darkGreen );
- KListViewItem::paintCell( p, _cg, column, width, alignment );
+ _cg.setColor( TQColorGroup::Text, TQt::darkGreen );
+ KListViewItem::paintCell( p, _cg, column, width, tqalignment );
return;
}
- KListViewItem::paintCell( p, cg, column, width, alignment );
+ KListViewItem::paintCell( p, cg, column, width, tqalignment );
}
bool BatchProcessImagesItem::overWrote()
@@ -92,13 +92,13 @@ void BatchProcessImagesItem::setDidOverWrite( bool b )
_overwrote = b;
}
-void BatchProcessImagesItem::setKey(const QString& val, bool reverseSort)
+void BatchProcessImagesItem::setKey(const TQString& val, bool reverseSort)
{
_key = val;
_reverseSort = reverseSort;
}
-QString BatchProcessImagesItem::key(int column, bool ) const
+TQString BatchProcessImagesItem::key(int column, bool ) const
{
if (_key.isNull())
return text(column);
@@ -106,7 +106,7 @@ QString BatchProcessImagesItem::key(int column, bool ) const
return _key;
}
-int BatchProcessImagesItem::compare(QListViewItem * i, int col, bool ascending) const
+int BatchProcessImagesItem::compare(TQListViewItem * i, int col, bool ascending) const
{
int weight = _reverseSort ? -1 : 1;
return weight * key(col, ascending).localeAwareCompare(i->key( col, ascending));