Commit d33dcac6 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Fix "Callee" vs "Caller" labels in statistics view

Change-Id: I28a134b0ae72bb87ad6849f0f70a5332ec019a50
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent a5b7ba58
......@@ -394,6 +394,11 @@ void QmlProfilerStatisticsRelativesModel::finalize(const QSet<int> &eventsInBind
}
}
QmlProfilerStatisticsRelation QmlProfilerStatisticsRelativesModel::relation() const
{
return m_relation;
}
int QmlProfilerStatisticsRelativesModel::count() const
{
return m_data.count();
......
......@@ -124,6 +124,8 @@ public:
void loadEvent(const QmlEvent &event);
void finalize(const QSet<int> &eventsInBindingLoop);
QmlProfilerStatisticsRelation relation() const;
signals:
void dataAvailable();
......
......@@ -914,7 +914,7 @@ void QmlProfilerStatisticsRelativesView::clear()
void QmlProfilerStatisticsRelativesView::updateHeader()
{
bool calleesView = qobject_cast<QmlProfilerStatisticsRelativesModel *>(d->model) != 0;
bool calleesView = d->model->relation() == QmlProfilerStatisticsChilden;
if (treeModel()) {
treeModel()->setColumnCount(5);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment