diff options
Diffstat (limited to 'kcachegrind/kcachegrind/partgraph.cpp')
-rw-r--r-- | kcachegrind/kcachegrind/partgraph.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kcachegrind/kcachegrind/partgraph.cpp b/kcachegrind/kcachegrind/partgraph.cpp index c3ed6064..11f4cd29 100644 --- a/kcachegrind/kcachegrind/partgraph.cpp +++ b/kcachegrind/kcachegrind/partgraph.cpp @@ -29,7 +29,7 @@ // PartAreaWidget -PartAreaWidget::PartAreaWidget(QWidget* parent, const char* name) +PartAreaWidget::PartAreaWidget(TQWidget* parent, const char* name) : TreeMapWidget(new BasePartItem(), parent, name) { _data = 0; @@ -128,7 +128,7 @@ bool PartAreaWidget::isHidden(TracePart* part) const return (_hiddenParts.containsRef(part)>0); } -QColor PartAreaWidget::groupColor(TraceFunction* f) const +TQColor PartAreaWidget::groupColor(TraceFunction* f) const { if (!f) return colorGroup().button(); @@ -136,9 +136,9 @@ QColor PartAreaWidget::groupColor(TraceFunction* f) const return Configuration::functionColor(_groupType, f); } -QString PartAreaWidget::tipString(TreeMapItem* i) const +TQString PartAreaWidget::tipString(TreeMapItem* i) const { - QString tip, itemTip; + TQString tip, itemTip; int count = 0; //qDebug("PartAreaWidget::tipString for '%s'", i->name().ascii()); @@ -219,7 +219,7 @@ TreeMapItemList* BasePartItem::children() return _children; } -QString BasePartItem::text(int textNo) const +TQString BasePartItem::text(int textNo) const { if (textNo == 0) { if (!_data) @@ -228,11 +228,11 @@ QString BasePartItem::text(int textNo) const if (_data->parts().count() == 0) return i18n("(no part)"); } - return QString::null; + return TQString::null; } -QColor BasePartItem::backColor() const +TQColor BasePartItem::backColor() const { return widget()->colorGroup().base(); } @@ -257,13 +257,13 @@ PartItem::PartItem(TracePart* p) _factor=1; } -QString PartItem::text(int textNo) const +TQString PartItem::text(int textNo) const { if (textNo == 0) return _p->prettyName(); if (textNo != 1) - return QString::null; + return TQString::null; TraceCostType* ct; PartAreaWidget* w = (PartAreaWidget*)widget(); @@ -275,16 +275,16 @@ QString PartItem::text(int textNo) const if (Configuration::showPercentage()) { TraceCost* t = _p->data()->totals(); double p = 100.0 * v / t->subCost(ct); - return QString("%1 %") + return TQString("%1 %") .arg(p, 0, 'f', Configuration::percentPrecision()); } return v.pretty(); } -QPixmap PartItem::pixmap(int i) const +TQPixmap PartItem::pixmap(int i) const { - if (i != 1) return QPixmap(); + if (i != 1) return TQPixmap(); // Cost pixmap @@ -401,7 +401,7 @@ TreeMapItemList* PartItem::children() } -QColor PartItem::backColor() const +TQColor PartItem::backColor() const { PartAreaWidget* w = (PartAreaWidget*)widget(); return w->groupColor(0); @@ -416,7 +416,7 @@ SubPartItem::SubPartItem(TraceCost* c) _factor=1; } -QString SubPartItem::text(int textNo) const +TQString SubPartItem::text(int textNo) const { if (textNo == 0) { if (!_partCostItem) @@ -426,7 +426,7 @@ QString SubPartItem::text(int textNo) const } if (textNo != 1) - return QString::null; + return TQString::null; TraceCostType* ct; PartAreaWidget* w = (PartAreaWidget*)widget(); @@ -442,15 +442,15 @@ QString SubPartItem::text(int textNo) const TraceCost* t = Configuration::showExpanded() ? _partCostItem->part() : _partCostItem->part()->data()->totals(); double p = 100.0 * v / t->subCost(ct); - return QString("%1 %") + return TQString("%1 %") .arg(p, 0, 'f', Configuration::percentPrecision()); } return v.pretty(); } -QPixmap SubPartItem::pixmap(int i) const +TQPixmap SubPartItem::pixmap(int i) const { - if (i != 1) return QPixmap(); + if (i != 1) return TQPixmap(); // Cost pixmap @@ -521,7 +521,7 @@ TreeMapItemList* SubPartItem::children() } -QColor SubPartItem::backColor() const +TQColor SubPartItem::backColor() const { PartAreaWidget* w = (PartAreaWidget*)widget(); if (w->visualisation() == PartAreaWidget::Inclusive) |