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:
Ulf Hermann
2016-08-11 13:41:34 +02:00
parent c9956b9e05
commit 6789f50018
6 changed files with 11 additions and 14 deletions

View File

@@ -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)