1
0

qml: ensure that the slider neutral position is in the middle of the screen

This commit is contained in:
ThomasV
2023-03-16 12:13:14 +01:00
parent f0d44d0681
commit 5b8fdacac9
2 changed files with 38 additions and 2 deletions

View File

@@ -159,8 +159,9 @@ ElDialog {
id: swapslider
Layout.topMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge
Layout.leftMargin: constants.paddingXXLarge
Layout.rightMargin: constants.paddingXXLarge
Layout.leftMargin: constants.paddingXXLarge + (parent.width - 2 * constants.paddingXXLarge) * swaphelper.leftVoid
Layout.rightMargin: constants.paddingXXLarge + (parent.width - 2 * constants.paddingXXLarge) * swaphelper.rightVoid
Layout.fillWidth: true
from: swaphelper.rangeMin