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

Merge branch 'develop' into 'master'

Develop

See merge request !43
parents cbd9916d 4347dd62
No related branches found
No related tags found
2 merge requests!50Features 3819,!43Develop
...@@ -41,6 +41,8 @@ Button ...@@ -41,6 +41,8 @@ Button
property string borderColorButton property string borderColorButton
///@detalis borderWidthButton Sets the width of the border. ///@detalis borderWidthButton Sets the width of the border.
property int borderWidthButton property int borderWidthButton
///@detalis dapHorizontalAlignment Horizontal text alignment.
property alias dapHorizontalAlignment: buttonText.horizontalAlignment
id: dapButton id: dapButton
......
...@@ -23,8 +23,8 @@ DapTextForm ...@@ -23,8 +23,8 @@ DapTextForm
case Text.ElideRight: case Text.ElideRight:
elText = textMetric.elidedText.substring(0, textMetric.elidedText.length - 1) + elText = textMetric.elidedText.substring(0, textMetric.elidedText.length - 1) +
((fontMetric.tightBoundingRect(textMetric.elidedText.substring(0, textMetric.elidedText.length - 1)).width + ((fontMetric.tightBoundingRect(textMetric.elidedText.substring(0, textMetric.elidedText.length - 1)).width +
fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < textMetric.elideWidth ? fontMetric.tightBoundingRect(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..').width) < elText.elideWidth ?
(textMetric.text.charAt(textMetric.elidedText.length - 1) + '..'): (textMetric.text.charAt(textMetric.elidedText.length - 3) + '..'):
'..'); '..');
break; 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