This is a patch to fix the Bluetooth issue that
long device name may cover pair button
Change-Id: Ida0fd980cf3308be959eb74ea30e11beeffd5453
Signed-off-by: LiPengKun <pengkun.li@jp.alps.com>
Column {
anchors.left: parent.left
anchors.leftMargin: 80
+ TextMetrics {
+ id: textMetrics
+ font.family: "Arial"
+ elide: Text.ElideRight
+ elideWidth: 140
+ text: deviceName
+ }
Text {
id: btName
- text: deviceName
+ text: textMetrics.elidedText
color: '#66FF99'
font.pixelSize: 48
}