diff options
author | Brook Cronin <brook.cronin@qt.io> | 2023-09-19 11:57:38 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2023-09-19 12:13:10 +0000 |
commit | 765fe02a8852281279e6ef57d1693093daba3d42 (patch) | |
tree | ecb051f0812ab2275a6bf2aca4b760c85724a24d | |
parent | 83b37a8b5c1c003a1db1f2ff4dc6fbad1d883d18 (diff) |
QmlDesigner: Fix Pill eliding logic
Change-Id: I573251001b2e77ff3f3fb0046615d65de814c21d
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
-rw-r--r-- | share/qtcreator/qmldesigner/connectionseditor/Pill.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/qmldesigner/connectionseditor/Pill.qml b/share/qtcreator/qmldesigner/connectionseditor/Pill.qml index 1a6d2681f5..d92163e909 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)) |