controlcenter: max padding now 2
This commit is contained in:
parent
cc74308800
commit
f2e9f60344
1 changed files with 4 additions and 4 deletions
|
|
@ -912,7 +912,7 @@ RowLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - Appearance.padding.normal
|
width: parent.width - Appearance.padding.normal
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
validator: DoubleValidator { bottom: 0.1; top: 5.0 }
|
validator: DoubleValidator { bottom: 0.1; top: 2.0 }
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
text = (rootPane.paddingScale).toFixed(1);
|
text = (rootPane.paddingScale).toFixed(1);
|
||||||
|
|
@ -921,7 +921,7 @@ RowLayout {
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
if (activeFocus) {
|
if (activeFocus) {
|
||||||
const val = parseFloat(text);
|
const val = parseFloat(text);
|
||||||
if (!isNaN(val) && val >= 0.1 && val <= 5.0) {
|
if (!isNaN(val) && val >= 0.1 && val <= 2.0) {
|
||||||
rootPane.paddingScale = val;
|
rootPane.paddingScale = val;
|
||||||
rootPane.saveConfig();
|
rootPane.saveConfig();
|
||||||
}
|
}
|
||||||
|
|
@ -929,7 +929,7 @@ RowLayout {
|
||||||
}
|
}
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
const val = parseFloat(text);
|
const val = parseFloat(text);
|
||||||
if (isNaN(val) || val < 0.1 || val > 5.0) {
|
if (isNaN(val) || val < 0.1 || val > 2.0) {
|
||||||
text = (rootPane.paddingScale).toFixed(1);
|
text = (rootPane.paddingScale).toFixed(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -950,7 +950,7 @@ RowLayout {
|
||||||
implicitHeight: Appearance.padding.normal * 3
|
implicitHeight: Appearance.padding.normal * 3
|
||||||
|
|
||||||
from: 0.1
|
from: 0.1
|
||||||
to: 5.0
|
to: 2.0
|
||||||
value: rootPane.paddingScale
|
value: rootPane.paddingScale
|
||||||
onMoved: {
|
onMoved: {
|
||||||
rootPane.paddingScale = paddingSlider.value;
|
rootPane.paddingScale = paddingSlider.value;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue