summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2019-03-20 16:53:50 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-03-21 08:54:49 +0000
commit6dd4b4c848b4d89a9b2b503a10c80405ff157090 (patch)
treeb93f3c2a10d8c58b4cf20900e40f2fcedba6c989
parent8054bf20b7e69470b852ccfc1e30ed9e3e59e305 (diff)
Fix variant group label width when it is just above previous max
Change-Id: I618d47d0b84c9ef168c4cdb960384de4728acb6e Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
index 02e8f4c1..325a02ed 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
@@ -1161,7 +1161,7 @@ Rectangle {
maxGroupLabelWidth = 20; // min group label width
if (item.groupLabelWidth > maxGroupLabelWidth) {
- maxGroupLabelWidth = item.groupLabelWidth + 5;
+ maxGroupLabelWidth = item.groupLabelWidth;
if (maxGroupLabelWidth > 150) // max group label width
maxGroupLabelWidth = 150;
@@ -1174,7 +1174,7 @@ Rectangle {
readonly property var tagsModel: model.tags
readonly property var groupModel: model
- readonly property int groupLabelWidth: tLabel.implicitWidth
+ readonly property int groupLabelWidth: tLabel.implicitWidth + 10
Text {
id: tLabel