- fixed text sizing issue at switch delegate

This commit is contained in:
Dorian Zedler 2019-03-29 21:15:24 +01:00
parent dc26169fe0
commit b089584981
3 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,7 @@ SmoothItemDelegate {
text: qsTr("delay (ms)") text: qsTr("delay (ms)")
width: parent.width width: parent.width
rightPadding: textField.width * 1.2
height: parent.delegateHeight height: parent.delegateHeight
TextField { TextField {

View file

@ -17,6 +17,8 @@ ItemDelegate {
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
left: parent.left left: parent.left
leftMargin: control.width * 0.02 leftMargin: control.width * 0.02
right: parent.right
rightMargin: control.rightPadding
} }
text: control.text text: control.text

View file

@ -20,6 +20,7 @@ SwitchDelegate {
left: parent.left left: parent.left
right: indicator.left right: indicator.left
leftMargin: control.width * 0.02 leftMargin: control.width * 0.02
rightMargin: control.width * 0.01
} }
text: control.text text: control.text