forked from qt-creator/qt-creator
QmlProfiler: Make rowHeightChanged signals more specific
It's very handy to know which row changed and what the new height is. Change-Id: Iff3a45c3fbfc47f9b1001a9cf15741349e1e50b8 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()), this, SLOT(requestPaint()));
|
||||
disconnect(m_model, SIGNAL(rowHeightChanged(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()), this, SLOT(requestPaint()));
|
||||
connect(m_model, SIGNAL(rowHeightChanged(int,int)), this, SLOT(requestPaint()));
|
||||
}
|
||||
|
||||
emit modelChanged(m_model);
|
||||
|
||||
Reference in New Issue
Block a user