summaryrefslogtreecommitdiff
path: root/plugins/qmlprofiler/qml/Label.qml
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@digia.com>2013-07-15 16:54:50 +0200
committerChristiaan Janssen <christiaan.janssen@digia.com>2013-08-06 15:58:34 +0300
commitcb0ea6407fcac53f02be726476ad8fd43c32a208 (patch)
treef334717440411a29db1023414f398045fbdd0bc7 /plugins/qmlprofiler/qml/Label.qml
parentadcb00a4c36bdaea8ec73d3784e0a617bf615127 (diff)
downloadqt-creator-cb0ea6407fcac53f02be726476ad8fd43c32a208.tar.gz
QmlProfiler: resetting expanded when data changes
Change-Id: Iaacbe03eecb0679da03006f439e10b1e2dfe9167 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'plugins/qmlprofiler/qml/Label.qml')
-rw-r--r--plugins/qmlprofiler/qml/Label.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/qml/Label.qml b/plugins/qmlprofiler/qml/Label.qml
index 5c0ac3ca60..afc96b92f1 100644
--- a/plugins/qmlprofiler/qml/Label.qml
+++ b/plugins/qmlprofiler/qml/Label.qml
@@ -57,6 +57,8 @@ Item {
}
function updateHeight() {
+ if (expanded != qmlProfilerModelProxy.expanded(modelIndex, categoryIndex))
+ expanded = qmlProfilerModelProxy.expanded(modelIndex, categoryIndex);
height = root.singleRowHeight * qmlProfilerModelProxy.categoryDepth(modelIndex, categoryIndex);
}