From f5e01b8b099c8b401819ceb3c6430aada93578e1 Mon Sep 17 00:00:00 2001 From: Brook Cronin Date: Tue, 19 Sep 2023 11:57:38 +0200 Subject: [PATCH] QmlDesigner: Fix Pill eliding logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I573251001b2e77ff3f3fb0046615d65de814c21d Reviewed-by: Thomas Hartmann Reviewed-by: Henning Gründl Reviewed-by: Reviewed-by: Qt CI Patch Build Bot --- share/qtcreator/qmldesigner/connectionseditor/Pill.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/qmldesigner/connectionseditor/Pill.qml b/share/qtcreator/qmldesigner/connectionseditor/Pill.qml index 1a6d2681f50..d92163e9096 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/Pill.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/Pill.qml @@ -113,7 +113,7 @@ FocusScope { leftPadding: root.margin rightPadding: icon.visible ? 0 : root.margin - property int textWidth: Math.min(textMetrics.width, + property int textWidth: Math.min(textMetrics.advanceWidth + 2, root.maxTextWidth - row.leftPadding - (icon.visible ? icon.width : root.margin))