aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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