forked from qt-creator/qt-creator
QmlProfiler: Fix "Callee" vs "Caller" labels in statistics view
Change-Id: I28a134b0ae72bb87ad6849f0f70a5332ec019a50 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -394,6 +394,11 @@ void QmlProfilerStatisticsRelativesModel::finalize(const QSet<int> &eventsInBind
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QmlProfilerStatisticsRelation QmlProfilerStatisticsRelativesModel::relation() const
|
||||||
|
{
|
||||||
|
return m_relation;
|
||||||
|
}
|
||||||
|
|
||||||
int QmlProfilerStatisticsRelativesModel::count() const
|
int QmlProfilerStatisticsRelativesModel::count() const
|
||||||
{
|
{
|
||||||
return m_data.count();
|
return m_data.count();
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ public:
|
|||||||
void loadEvent(const QmlEvent &event);
|
void loadEvent(const QmlEvent &event);
|
||||||
void finalize(const QSet<int> &eventsInBindingLoop);
|
void finalize(const QSet<int> &eventsInBindingLoop);
|
||||||
|
|
||||||
|
QmlProfilerStatisticsRelation relation() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void dataAvailable();
|
void dataAvailable();
|
||||||
|
|
||||||
|
|||||||
@@ -914,7 +914,7 @@ void QmlProfilerStatisticsRelativesView::clear()
|
|||||||
|
|
||||||
void QmlProfilerStatisticsRelativesView::updateHeader()
|
void QmlProfilerStatisticsRelativesView::updateHeader()
|
||||||
{
|
{
|
||||||
bool calleesView = qobject_cast<QmlProfilerStatisticsRelativesModel *>(d->model) != 0;
|
bool calleesView = d->model->relation() == QmlProfilerStatisticsChilden;
|
||||||
|
|
||||||
if (treeModel()) {
|
if (treeModel()) {
|
||||||
treeModel()->setColumnCount(5);
|
treeModel()->setColumnCount(5);
|
||||||
|
|||||||
Reference in New Issue
Block a user