- fixed text sizing issue at switch delegate
This commit is contained in:
parent
dc26169fe0
commit
b089584981
3 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue