Skip to content
Permalink
Browse files

[QgsQuick] Added SpinBox beside Slider for a range field.

Formatted
  • Loading branch information
vsklencar authored and wonder-sk committed Jul 26, 2019
1 parent 35c9ee3 commit 1a414ef16c61ad54dcfd4bd127ba081ac155d67b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/quickgui/plugin/editor/qgsquickrange.qml
@@ -22,7 +22,7 @@ Item {
signal valueChanged(var value, bool isNull)

property real customMargin: 10 * QgsQuick.Utils.dp
property string widgetStyle: config["Style"] ? config["Style"] : "SpinBox" // Slider
property string widgetStyle: config["Style"] ? config["Style"] : "SpinBox"
property int precision: config["Precision"]
property real from: config["Min"]
property real to: config["Max"]
@@ -73,9 +73,9 @@ Item {
visible: fieldItem.widgetStyle === "SpinBox"

onValueChanged: {
if (visible) {
fieldItem.valueChanged(spinbox.value / multiplier, false)
}
if (visible) {
fieldItem.valueChanged(spinbox.value / multiplier, false)
}
}

validator: DoubleValidator {

0 comments on commit 1a414ef

Please sign in to comment.
You can’t perform that action at this time.