forked from qt-creator/qt-creator
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:
@@ -105,6 +105,7 @@ QVariantMap QmlProfilerTimelineModel::locationFromTypeId(int index) const
|
||||
|
||||
void QmlProfilerTimelineModel::initialize()
|
||||
{
|
||||
setHidden(!(modelManager()->visibleFeatures() & (1ULL << m_mainFeature)));
|
||||
}
|
||||
|
||||
void QmlProfilerTimelineModel::finalize()
|
||||
|
||||
Reference in New Issue
Block a user