From b623da3b2e78701256577ad0d00aead9c2522dbe Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 2 Dec 2013 14:35:45 +0100 Subject: Send expandedChanged if expanded state changes. If this is not done the timeline isn't immediately redrawn when the category is expanded, which leads to stale data being shown. Change-Id: If8da6dbe5c8124105e1e15fb5129df906114723f Reviewed-by: Kai Koehne --- plugins/qmlprofilerextension/pixmapcachemodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/qmlprofilerextension/pixmapcachemodel.cpp b/plugins/qmlprofilerextension/pixmapcachemodel.cpp index d1fec8d171..ce9e8b76c3 100644 --- a/plugins/qmlprofilerextension/pixmapcachemodel.cpp +++ b/plugins/qmlprofilerextension/pixmapcachemodel.cpp @@ -109,7 +109,10 @@ bool PixmapCacheModel::expanded(int ) const void PixmapCacheModel::setExpanded(int category, bool expanded) { Q_UNUSED(category); + bool prev_expanded = d->isExpanded; d->isExpanded = expanded; + if (prev_expanded != expanded) + emit expandedChanged(); } int PixmapCacheModel::categoryDepth(int categoryIndex) const -- cgit v1.2.3