From 3bd37a71609f443405fd9b85f9368866ebc40d2c Mon Sep 17 00:00:00 2001 From: Christiaan Janssen Date: Tue, 26 Jul 2011 14:02:27 +0200 Subject: [PATCH] QmlProfiler: variable width of status display Task-number: QTCREATORBUG-5610 Change-Id: Iffb94213fb209799f2ba55c1031c091c68ece4ea Reviewed-on: http://codereview.qt.nokia.com/2190 Reviewed-by: Qt Sanity Bot Reviewed-by: Aurindam Jana --- src/plugins/qmlprofiler/qml/StatusDisplay.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlprofiler/qml/StatusDisplay.qml b/src/plugins/qmlprofiler/qml/StatusDisplay.qml index 751c8dffdb1..f09e886fa51 100644 --- a/src/plugins/qmlprofiler/qml/StatusDisplay.qml +++ b/src/plugins/qmlprofiler/qml/StatusDisplay.qml @@ -13,7 +13,7 @@ Rectangle { } } - width: 200 + width: Math.max(200, statusText.width+20); height: displayColumn.height + 20 visible: false; @@ -27,11 +27,11 @@ Rectangle { id: displayColumn y: 10 spacing: 5 + width: parent.width Text { id: statusText - width: statusDisplay.width horizontalAlignment: "AlignHCenter" - y: 10 + anchors.horizontalCenter: parent.horizontalCenter } Rectangle {