- 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)")
|
||||
|
||||
width: parent.width
|
||||
rightPadding: textField.width * 1.2
|
||||
height: parent.delegateHeight
|
||||
|
||||
TextField {
|
||||
|
|
|
@ -17,6 +17,8 @@ ItemDelegate {
|
|||
verticalCenter: parent.verticalCenter
|
||||
left: parent.left
|
||||
leftMargin: control.width * 0.02
|
||||
right: parent.right
|
||||
rightMargin: control.rightPadding
|
||||
}
|
||||
|
||||
text: control.text
|
||||
|
|
|
@ -20,6 +20,7 @@ SwitchDelegate {
|
|||
left: parent.left
|
||||
right: indicator.left
|
||||
leftMargin: control.width * 0.02
|
||||
rightMargin: control.width * 0.01
|
||||
}
|
||||
|
||||
text: control.text
|
||||
|
|
Reference in a new issue