summaryrefslogtreecommitdiffstats
path: root/kcachegrind/kcachegrind/partlistitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kcachegrind/kcachegrind/partlistitem.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcachegrind/kcachegrind/partlistitem.cpp')
-rw-r--r--kcachegrind/kcachegrind/partlistitem.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kcachegrind/kcachegrind/partlistitem.cpp b/kcachegrind/kcachegrind/partlistitem.cpp
index 19965f7c..40c2db36 100644
--- a/kcachegrind/kcachegrind/partlistitem.cpp
+++ b/kcachegrind/kcachegrind/partlistitem.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,10 +33,10 @@
// PartListItem
-PartListItem::PartListItem(QListView* parent, TraceCostItem* costItem,
+PartListItem::PartListItem(TQListView* parent, TraceCostItem* costItem,
TraceCostType* ct, TraceCost::CostType gt,
TracePart* part)
- :QListViewItem(parent)
+ :TQListViewItem(parent)
{
_partCostItem = costItem->findDepFromPart(part);
_part = part;
@@ -44,7 +44,7 @@ PartListItem::PartListItem(QListView* parent, TraceCostItem* costItem,
_costType = ct;
#if 0
- QString partName = QString::number(part->partNumber());
+ TQString partName = TQString::number(part->partNumber());
if (part->data()->maxThreadID() >1)
partName += i18n(" (Thread %1)").arg(part->threadID());
setText(0, partName);
@@ -100,13 +100,13 @@ void PartListItem::update()
_sum = pf ? pf->inclusive()->subCost(_costType) : SubCost(0);
if (selfTotal == 0 || !_partCostItem) {
- setText(2, QString("-"));
- setPixmap(2, QPixmap());
+ setText(2, TQString("-"));
+ setPixmap(2, TQPixmap());
}
else {
double pure = 100.0 * _pure / selfTotal;
if (Configuration::showPercentage()) {
- setText(2, QString("%1")
+ setText(2, TQString("%1")
.arg(pure, 0, 'f', Configuration::percentPrecision()));
}
else
@@ -116,13 +116,13 @@ void PartListItem::update()
}
if (total == 0 || !pf) {
- setText(1, QString("-"));
- setPixmap(1, QPixmap());
+ setText(1, TQString("-"));
+ setPixmap(1, TQPixmap());
}
else {
double sum = 100.0 * _sum / total;
if (Configuration::showPercentage()) {
- setText(1, QString("%1")
+ setText(1, TQString("%1")
.arg(sum, 0, 'f', Configuration::percentPrecision()));
}
else
@@ -132,7 +132,7 @@ void PartListItem::update()
}
if (!pf) {
- setText(3, QString("-"));
+ setText(3, TQString("-"));
_callers = 0;
return;
}
@@ -140,7 +140,7 @@ void PartListItem::update()
TracePartCall* pc;
TracePartCallList pl;
SubCost callers, callees;
- QString str;
+ TQString str;
callers = 0;
pl = pf->partCallers();
@@ -158,7 +158,7 @@ void PartListItem::update()
}
-int PartListItem::compare(QListViewItem * i, int col, bool ascending ) const
+int PartListItem::compare(TQListViewItem * i, int col, bool ascending ) const
{
PartListItem* fi = (PartListItem*) i;
if (col==0) {
@@ -185,5 +185,5 @@ int PartListItem::compare(QListViewItem * i, int col, bool ascending ) const
if (_callers > fi->_callers) return 1;
return 0;
}
- return QListViewItem::compare(i, col, ascending);
+ return TQListViewItem::compare(i, col, ascending);
}