QmlProfiler: eliminate redundant categories() methods

Change-Id: I3a85322cc583de37f1cc4eb256e3382a92c5c179
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-02-14 13:14:54 +01:00
parent adada0b95d
commit db7c75597c
9 changed files with 6 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ void AbstractTimelineModel::setModelManager(QmlProfilerModelManager *modelManage
QStringList AbstractTimelineModel::categoryTitles() const
{
QStringList retString;
for (int i = 0; i < categories(); i++)
for (int i = 0; i < categoryCount(); i++)
retString << categoryLabel(i);
return retString;
}