fix binding loop in settings TextField

work/spdx
Michail Vourlakos 4 years ago
parent e9ecec47dc
commit 6f2369962b

@ -40,7 +40,7 @@ PlasmaComponents.TextField {
placeholderText: i18n("none")
horizontalAlignment: Text.AlignLeft
width: internalContent.width + theme.mSize(theme.defaultFont).width * 3.5
readonly property int implicitWidth: internalContent.width + theme.mSize(theme.defaultFont).width * 3.5
readonly property int value: text === "" ? minValue : parseInt(text)
property int step: 100

@ -591,7 +591,7 @@ PlasmaComponents.Page {
}
LatteComponents.TextField {
Layout.preferredWidth: width
Layout.preferredWidth: implicitWidth
text: latteView.visibility.timerShow
onValueChanged: {
@ -622,7 +622,7 @@ PlasmaComponents.Page {
}
LatteComponents.TextField{
Layout.preferredWidth: width
Layout.preferredWidth: implicitWidth
text: latteView.visibility.timerHide
maxValue: 5000

Loading…
Cancel
Save