forked from qt-creator/qt-creator
Timeline: Unify TimelineModel's emptyChanged and labelsChanged signals
It doesn't make sense to distinguish between them. When the content changes, the labels, the number of items, and the "empty" state change. Change-Id: I65f77f65828626fd76bfd968abf67b608b6e267b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -92,19 +92,17 @@ void QmlProfilerTimelineModel::announceFeatures(quint64 features)
|
||||
|
||||
void QmlProfilerTimelineModel::dataChanged()
|
||||
{
|
||||
|
||||
switch (m_modelManager->state()) {
|
||||
case QmlProfilerModelManager::Done:
|
||||
emit emptyChanged();
|
||||
emit contentChanged();
|
||||
break;
|
||||
case QmlProfilerModelManager::ClearingData:
|
||||
clear();
|
||||
break;
|
||||
default:
|
||||
emit contentChanged();
|
||||
break;
|
||||
}
|
||||
|
||||
emit labelsChanged();
|
||||
}
|
||||
|
||||
void QmlProfilerTimelineModel::onVisibleFeaturesChanged(quint64 features)
|
||||
|
||||
Reference in New Issue
Block a user