summaryrefslogtreecommitdiffstats
path: root/kcachegrind/kcachegrind/costlistitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcachegrind/kcachegrind/costlistitem.cpp')
-rw-r--r--kcachegrind/kcachegrind/costlistitem.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kcachegrind/kcachegrind/costlistitem.cpp b/kcachegrind/kcachegrind/costlistitem.cpp
index e0136030..1e777b05 100644
--- a/kcachegrind/kcachegrind/costlistitem.cpp
+++ b/kcachegrind/kcachegrind/costlistitem.cpp
@@ -18,8 +18,8 @@
#include <math.h>
-#include <qpainter.h>
-#include <qregexp.h>
+#include <tqpainter.h>
+#include <tqregexp.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -33,9 +33,9 @@
// CostListItem
-CostListItem::CostListItem(QListView* parent, TraceCostItem* costItem,
+CostListItem::CostListItem(TQListView* parent, TraceCostItem* costItem,
TraceCostType* ct, int size)
- :QListViewItem(parent)
+ :TQListViewItem(parent)
{
_groupSize = size;
_skipped = 0;
@@ -49,9 +49,9 @@ CostListItem::CostListItem(QListView* parent, TraceCostItem* costItem,
}
}
-CostListItem::CostListItem(QListView* parent, int skipped,
+CostListItem::CostListItem(TQListView* parent, int skipped,
TraceCostItem* costItem, TraceCostType* ct)
- :QListViewItem(parent)
+ :TQListViewItem(parent)
{
_skipped = skipped;
_costItem = costItem;
@@ -70,8 +70,8 @@ void CostListItem::updateName()
{
if (!_costItem) return;
- QString n = _costItem->prettyName();
- if (_groupSize>=0) n += QString(" (%1)").arg(_groupSize);
+ TQString n = _costItem->prettyName();
+ if (_groupSize>=0) n += TQString(" (%1)").arg(_groupSize);
setText(1, n);
}
@@ -89,22 +89,22 @@ void CostListItem::update()
double total = d->subCost(_costType);
if (total == 0.0) {
- setText(0, QString("---"));
- setPixmap(0, QPixmap());
+ setText(0, TQString("---"));
+ setPixmap(0, TQPixmap());
return;
}
_pure = _costItem->subCost(_costType);
double pure = 100.0 * _pure / total;
- QString str;
+ TQString str;
if (Configuration::showPercentage())
- str = QString("%1").arg(pure, 0, 'f', Configuration::percentPrecision());
+ str = TQString("%1").arg(pure, 0, 'f', Configuration::percentPrecision());
else
str = _costItem->prettySubCost(_costType);
if (_skipped) {
// special handling for skip entries...
- setText(0, QString("< %1").arg(str));
+ setText(0, TQString("< %1").arg(str));
return;
}
@@ -112,7 +112,7 @@ void CostListItem::update()
setPixmap(0, costPixmap(_costType, _costItem, total, false));
}
-int CostListItem::compare(QListViewItem * i, int col, bool ascending ) const
+int CostListItem::compare(TQListViewItem * i, int col, bool ascending ) const
{
const CostListItem* fi1 = this;
const CostListItem* fi2 = (CostListItem*) i;
@@ -132,5 +132,5 @@ int CostListItem::compare(QListViewItem * i, int col, bool ascending ) const
if (fi1->_pure > fi2->_pure) return 1;
return 0;
}
- return QListViewItem::compare(i, col, ascending);
+ return TQListViewItem::compare(i, col, ascending);
}