aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2013-12-02 14:35:45 +0100
committerUlf Hermann <ulf.hermann@digia.com>2013-12-02 15:47:34 +0200
commitb623da3b2e78701256577ad0d00aead9c2522dbe (patch)
tree13bfa38638b94e5833dd2bd894869d2e710b04d1
parentab17b3ea6ea4f7b61f5ab740e431c40150e4ee18 (diff)
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 <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofilerextension/pixmapcachemodel.cpp3
1 files changed, 3 insertions, 0 deletions
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