QmlProfiler: Don't draw note markers for hidden categories

Change-Id: I6a2104522896fafb70d09c5872cb9641f45db5f4
Task-number: QTCREATORBUG-13533
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2014-11-26 18:44:38 +01:00
parent 796fdb82cb
commit f8e8d14bd4

View File

@@ -338,6 +338,8 @@ void TimelineRenderer::drawNotes(QPainter *p)
if (managerIndex == -1) if (managerIndex == -1)
continue; continue;
int modelIndex = m_profilerModelProxy->modelIndexFromManagerIndex(managerIndex); int modelIndex = m_profilerModelProxy->modelIndexFromManagerIndex(managerIndex);
if (m_profilerModelProxy->hidden(modelIndex))
continue;
int eventIndex = notes->timelineIndex(i); int eventIndex = notes->timelineIndex(i);
int row = m_profilerModelProxy->row(modelIndex, eventIndex); int row = m_profilerModelProxy->row(modelIndex, eventIndex);
int rowHeight = m_profilerModelProxy->rowHeight(modelIndex, row); int rowHeight = m_profilerModelProxy->rowHeight(modelIndex, row);