forked from qt-creator/qt-creator
QmlProfiler: Separate expanded and collapsed row heights and counts
We'll need to access both of them when building the scene graph. This change also clarifies the dynamics between expanding categories and row heights and offsets. Change-Id: I2e2bf488ad973c95d05f230bf6fff63598f39bf2 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -66,14 +66,14 @@ void TimelineRenderer::setModel(QmlProfilerTimelineModel *model)
|
||||
if (m_model) {
|
||||
disconnect(m_model, SIGNAL(expandedChanged()), this, SLOT(requestPaint()));
|
||||
disconnect(m_model, SIGNAL(hiddenChanged()), this, SLOT(requestPaint()));
|
||||
disconnect(m_model, SIGNAL(rowHeightChanged(int,int)), this, SLOT(requestPaint()));
|
||||
disconnect(m_model, SIGNAL(expandedRowHeightChanged(int,int)), this, SLOT(requestPaint()));
|
||||
}
|
||||
|
||||
m_model = model;
|
||||
if (m_model) {
|
||||
connect(m_model, SIGNAL(expandedChanged()), this, SLOT(requestPaint()));
|
||||
connect(m_model, SIGNAL(hiddenChanged()), this, SLOT(requestPaint()));
|
||||
connect(m_model, SIGNAL(rowHeightChanged(int,int)), this, SLOT(requestPaint()));
|
||||
connect(m_model, SIGNAL(expandedRowHeightChanged(int,int)), this, SLOT(requestPaint()));
|
||||
}
|
||||
|
||||
emit modelChanged(m_model);
|
||||
|
||||
Reference in New Issue
Block a user