diff options
Diffstat (limited to 'kcachegrind/kcachegrind/callitem.cpp')
-rw-r--r-- | kcachegrind/kcachegrind/callitem.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kcachegrind/kcachegrind/callitem.cpp b/kcachegrind/kcachegrind/callitem.cpp index 67200daa..ebca4903 100644 --- a/kcachegrind/kcachegrind/callitem.cpp +++ b/kcachegrind/kcachegrind/callitem.cpp @@ -20,7 +20,7 @@ * Items for caller/callee view. */ -#include <qpixmap.h> +#include <tqpixmap.h> #include <klocale.h> #include <kapplication.h> #include <kiconloader.h> @@ -34,8 +34,8 @@ // CallItem -CallItem::CallItem(CallView* view, QListView* parent, TraceCall* c) - : QListViewItem(parent) +CallItem::CallItem(CallView* view, TQListView* parent, TraceCall* c) + : TQListViewItem(parent) { _call = c; _view = view; @@ -43,7 +43,7 @@ CallItem::CallItem(CallView* view, QListView* parent, TraceCall* c) _active = _view->activeFunction(); bool baseIsCycle = (_active && (_active == _active->cycle())); - QString fName; + TQString fName; if (_view->showCallers()) { _shown = _call->caller(true); fName = c->callerName(!baseIsCycle); @@ -62,7 +62,7 @@ CallItem::CallItem(CallView* view, QListView* parent, TraceCall* c) void CallItem::updateGroup() { - QColor c = Configuration::functionColor(_view->groupType(), _shown); + TQColor c = Configuration::functionColor(_view->groupType(), _shown); setPixmap(3, colorPixmap(10, 10, c)); } @@ -73,7 +73,7 @@ void CallItem::updateCost() bool selectedIsCycle = (_active == _active->cycle()); if (_call->isRecursion()) sameCycle=true; - QString cStr; + TQString cStr; if ((selectedIsCycle || shownIsCycle) && sameCycle) cStr = "-"; else { @@ -100,16 +100,16 @@ void CallItem::updateCost() double total = totalCost->subCost(ct); if (total == 0.0) { - QString str = "-"; + TQString str = "-"; setText(0, str); - setPixmap(0, QPixmap()); + setPixmap(0, TQPixmap()); } else { double sum = 100.0 * _sum / total; if (_view->topLevel()->showPercentage()) - setText(0, QString("%1") + setText(0, TQString("%1") .arg(sum, 0, 'f', Configuration::percentPrecision())); else setText(0, _call->prettySubCost(ct)); @@ -124,16 +124,16 @@ void CallItem::updateCost() double total = totalCost->subCost(ct2); if (total == 0.0) { - QString str = "-"; + TQString str = "-"; setText(1, str); - setPixmap(1, QPixmap()); + setPixmap(1, TQPixmap()); } else { double sum = 100.0 * _sum2 / total; if (_view->topLevel()->showPercentage()) - setText(1, QString("%1") + setText(1, TQString("%1") .arg(sum, 0, 'f', Configuration::percentPrecision())); else setText(1, _call->prettySubCost(ct2)); @@ -142,10 +142,10 @@ void CallItem::updateCost() } } - QPixmap p; + TQPixmap p; if (sameCycle && !selectedIsCycle && !shownIsCycle) { - QString icon = "undo"; + TQString icon = "undo"; KIconLoader* loader = KApplication::kApplication()->iconLoader(); p= loader->loadIcon(icon, KIcon::Small, 0, KIcon::DefaultState, 0, true); @@ -154,7 +154,7 @@ void CallItem::updateCost() } -int CallItem::compare(QListViewItem * i, int col, bool ascending ) const +int CallItem::compare(TQListViewItem * i, int col, bool ascending ) const { const CallItem* ci1 = this; const CallItem* ci2 = (CallItem*) i; @@ -180,6 +180,6 @@ int CallItem::compare(QListViewItem * i, int col, bool ascending ) const if (ci1->_cc > ci2->_cc) return 1; return 0; } - return QListViewItem::compare(i, col, ascending); + return TQListViewItem::compare(i, col, ascending); } |