RibbonSpinBox: Fix issue where text may be obscured.

Insufficient padding on the left side of LineEdit can cause text to be obscured by icons.
This commit is contained in:
Mentalflow 2023-08-20 13:49:54 +08:00
parent c6dd08cc92
commit b17ad7f434
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ SpinBox {
topPadding: 2 topPadding: 2
bottomPadding: 2 bottomPadding: 2
leftPadding: 10 + icon.visible ? icon.contentWidth + padding*2 : 0 leftPadding: icon.visible ? icon.contentWidth + padding*2 : 10
rightPadding: (10 + clear_btn.visible ? clear_btn.width + padding*2 : 0) + up.indicator.width rightPadding: (clear_btn.visible ? clear_btn.width + padding*2 : 10) + up.indicator.width
readOnly: !control.editable readOnly: !control.editable
validator: control.validator validator: control.validator