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 {
verticalAlignment: Text.AlignVCenter
}
// TODO: use TextField
SpinBox {
id: spinBox
......@@ -68,19 +69,24 @@ RowLayout {
Layout.preferredHeight: JamiTheme.preferredFieldHeight
Layout.alignment: Qt.AlignCenter
font.family: "Monospace"
font.pointSize: JamiTheme.buttonFontSize
font.kerning: true
from: root.bottomValue
to: root.topValue
stepSize: root.step
up.indicator.width: (width < 200) ? (width / 5) : 40
down.indicator.width: (width < 200) ? (width / 5) : 40
editable: true
up.indicator.width: 0
down.indicator.width: 0
textFromValue: function(value, locale) {
return Number(value)
}
onValueModified: {
root.valueField = value
newValue()
}
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment