Commit 2dd9e781 authored by Ulf Hermann's avatar Ulf Hermann Committed by Kai Koehne
Browse files

Trigger dataChanged in timeline model on stateChanged in model manager



Allow the timeline model to clear its caches if the model manager changes
states. The timeline model caches for example event categories which
become invalid if the manager assumes the state EMPTY.

Task-number: QTCREATORBUG-10706

Change-Id: I10529ac56d39b169b850a8b5250fd36cb65a57ba
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 462f49ac
......@@ -41,6 +41,7 @@ void AbstractTimelineModel::setModelManager(QmlProfilerModelManager *modelManage
{
m_modelManager = modelManager;
connect(modelManager->simpleModel(),SIGNAL(changed()),this,SLOT(dataChanged()));
connect(modelManager,SIGNAL(stateChanged()),this,SLOT(dataChanged()));
m_modelId = modelManager->registerModelProxy();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment