diff options
Diffstat (limited to 'kcachegrind/kcachegrind/sourceitem.cpp')
-rw-r--r-- | kcachegrind/kcachegrind/sourceitem.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kcachegrind/kcachegrind/sourceitem.cpp b/kcachegrind/kcachegrind/sourceitem.cpp index 9556c038..305b8244 100644 --- a/kcachegrind/kcachegrind/sourceitem.cpp +++ b/kcachegrind/kcachegrind/sourceitem.cpp @@ -87,7 +87,7 @@ SourceItem::SourceItem(SourceView* sv, TQListViewItem* parent, else templ += i18n("%n call to '%1'", "%n calls to '%1'", cc); - TQString callStr = templ.tqarg(_lineCall->call()->calledName()); + TQString callStr = templ.arg(_lineCall->call()->calledName()); TraceFunction* calledF = _lineCall->call()->called(); calledF->addPrettyLocation(callStr); @@ -123,13 +123,13 @@ SourceItem::SourceItem(SourceView* sv, TQListViewItem* parent, TQString jStr; if (_lineJump->isCondJump()) jStr = i18n("Jump %1 of %2 times to %3") - .tqarg(_lineJump->followedCount().pretty()) - .tqarg(_lineJump->executedCount().pretty()) - .tqarg(to); + .arg(_lineJump->followedCount().pretty()) + .arg(_lineJump->executedCount().pretty()) + .arg(to); else jStr = i18n("Jump %1 times to %2") - .tqarg(_lineJump->executedCount().pretty()) - .tqarg(to); + .arg(_lineJump->executedCount().pretty()) + .arg(to); setText(4, jStr); } @@ -193,7 +193,7 @@ void SourceItem::updateCost() if (Configuration::showPercentage()) setText(1, TQString("%1") - .tqarg(pure, 0, 'f', Configuration::percentPrecision())); + .arg(pure, 0, 'f', Configuration::percentPrecision())); else setText(1, _pure.pretty()); @@ -212,7 +212,7 @@ void SourceItem::updateCost() if (Configuration::showPercentage()) setText(2, TQString("%1") - .tqarg(pure2, 0, 'f', Configuration::percentPrecision())); + .arg(pure2, 0, 'f', Configuration::percentPrecision())); else setText(2, _pure2.pretty()); @@ -285,7 +285,7 @@ int SourceItem::compare(TQListViewItem * i, int col, bool ascending ) const } void SourceItem::paintCell( TQPainter *p, const TQColorGroup &cg, - int column, int width, int tqalignment ) + int column, int width, int alignment ) { TQColorGroup _cg( cg ); @@ -297,7 +297,7 @@ void SourceItem::paintCell( TQPainter *p, const TQColorGroup &cg, if (column == 3) paintArrows(p, _cg, width); else - TQListViewItem::paintCell( p, _cg, column, width, tqalignment ); + TQListViewItem::paintCell( p, _cg, column, width, alignment ); } void SourceItem::setJumpArray(const TQMemArray<TraceLineJump*>& a) @@ -314,7 +314,7 @@ void SourceItem::paintArrows(TQPainter *p, const TQColorGroup &cg, int width) const BackgroundMode bgmode = lv->viewport()->backgroundMode(); const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode ); - if ( cg.brush( crole ) != lv->tqcolorGroup().brush( crole ) ) + if ( cg.brush( crole ) != lv->colorGroup().brush( crole ) ) p->fillRect( 0, 0, width, height(), cg.brush( crole ) ); else sv->paintEmptyArea( p, TQRect( 0, 0, width, height() ) ); @@ -391,13 +391,13 @@ void SourceItem::paintArrows(TQPainter *p, const TQColorGroup &cg, int width) p->drawConvexPolygon(a); p->setPen(c.light()); - p->tqdrawPolyline(a, 0, 5); + p->drawPolyline(a, 0, 5); p->setPen(c.dark()); - p->tqdrawPolyline(a, 4, 2); + p->drawPolyline(a, 4, 2); p->setPen(c.light()); - p->tqdrawPolyline(a, 5, 2); + p->drawPolyline(a, 5, 2); p->setPen(c.dark()); - p->tqdrawPolyline(a, 6, 2); + p->drawPolyline(a, 6, 2); } // draw inner vertical line for start/stop |