Tracing: Don't change visible features on clearing and replaying

This used to be important for the mockup in the Timeline, but as the
mockup looks just fine with all available features visible, we can drop
it. As TimelineModel::clear() clears the "hidden" flag, we have to
restore that one on initialize(), though.

As a side effect the visibility settings are retained across profiling
sessions now.

Task-number: QTCREATORBUG-20503
Change-Id: I1512ab7e494ed79d20e2097d68f8494990cfecbb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2018-05-30 11:23:32 +02:00
parent 89c42161fa
commit 7a68196328
4 changed files with 1 additions and 16 deletions

View File

@@ -105,6 +105,7 @@ QVariantMap QmlProfilerTimelineModel::locationFromTypeId(int index) const
void QmlProfilerTimelineModel::initialize()
{
setHidden(!(modelManager()->visibleFeatures() & (1ULL << m_mainFeature)));
}
void QmlProfilerTimelineModel::finalize()