Skip to content
Snippets Groups Projects
Commit 4347dd62 authored by andrey.daragan's avatar andrey.daragan
Browse files

Develop

parent cbd9916d
No related branches found
No related tags found
1 merge request!50Features 3819
......@@ -41,6 +41,8 @@ Button
property string borderColorButton
///@detalis borderWidthButton Sets the width of the border.
property int borderWidthButton
///@detalis dapHorizontalAlignment Horizontal text alignment.
property alias dapHorizontalAlignment: buttonText.horizontalAlignment
id: dapButton
......
......@@ -23,8 +23,8 @@ DapTextForm
case Text.ElideRight:
elText = textMetric.elidedText.substring(0, textMetric.elidedText.length - 1) +
((fontMetric.tightBoundingRect(textMetric.elidedText.substring(0, textMetric.elidedText.length - 1)).width +
fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < textMetric.elideWidth ?
(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..'):
fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < elText.elideWidth ?
(textMetric.text.charAt(textMetric.elidedText.length - 3) + '..'):
'..');
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment