QmlDesigner: Reserve less space for label

We currently waste too much space for long label.
Eliding works fine for long property names.

Change-Id: I1fe2836e8c06cff93e2a48c6290265ab300e5321
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-06-12 11:37:42 +02:00
parent 0ec78b7b3e
commit b94c725f0f

View File

@@ -37,7 +37,7 @@ Controls.Label {
// workaround because PictureSpecifics.qml still use this // workaround because PictureSpecifics.qml still use this
property alias toolTip: toolTipArea.tooltip property alias toolTip: toolTipArea.tooltip
width: Math.max(Math.min(240, parent.width - 220), 80) width: Math.max(Math.min(240, parent.width - 280), 50)
color: Theme.color(Theme.PanelTextColorLight) color: Theme.color(Theme.PanelTextColorLight)
elide: Text.ElideRight elide: Text.ElideRight