callgrind: simplify inheritance tree by removing AbstractModel

This commit is contained in:
hjk
2011-04-05 11:11:57 +02:00
parent faf3d5d34d
commit 223d3ca962
10 changed files with 28 additions and 102 deletions

View File

@@ -60,7 +60,7 @@ void CallgrindTextMark::paint(QPainter *painter, const QRect &paintRect) const
return;
bool ok;
qreal costs = m_modelIndex.data(DataModel::RelativeTotalCostRole).toReal(&ok);
qreal costs = m_modelIndex.data(RelativeTotalCostRole).toReal(&ok);
QTC_ASSERT(ok, return)
QTC_ASSERT(costs >= 0.0 && costs <= 100.0, return)