Skip to content
Snippets Groups Projects
Commit d426815c authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

settings: make settings spin box editable

Change-Id: I065bc0e378f3481c0afa694595c1b882cdf1254a
parent 5e87b43e
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,7 @@ RowLayout { ...@@ -61,6 +61,7 @@ RowLayout {
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }
// TODO: use TextField
SpinBox { SpinBox {
id: spinBox id: spinBox
...@@ -68,15 +69,20 @@ RowLayout { ...@@ -68,15 +69,20 @@ RowLayout {
Layout.preferredHeight: JamiTheme.preferredFieldHeight Layout.preferredHeight: JamiTheme.preferredFieldHeight
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
font.family: "Monospace"
font.pointSize: JamiTheme.buttonFontSize font.pointSize: JamiTheme.buttonFontSize
font.kerning: true font.kerning: true
from: root.bottomValue from: root.bottomValue
to: root.topValue to: root.topValue
stepSize: root.step
up.indicator.width: (width < 200) ? (width / 5) : 40 editable: true
down.indicator.width: (width < 200) ? (width / 5) : 40 up.indicator.width: 0
down.indicator.width: 0
textFromValue: function(value, locale) {
return Number(value)
}
onValueModified: { onValueModified: {
root.valueField = value root.valueField = value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment