Skip to content

Commit

Permalink
Adds name to top level element
Browse files Browse the repository at this point in the history
Signed-off-by: Voldivh <eloyabmfcv@gmail.com>
  • Loading branch information
Voldivh committed Sep 20, 2023
1 parent bb26cc8 commit 8c223e9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions include/gz/gui/qml/GzSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

Item {
property double minimumValue : 0
property double maximumValue : 100
property double stepSize : 0
property double decimals : 0
property double value : 0
id: gzSpinBoxItem
property real minimumValue : 0
property real maximumValue : 100
property real stepSize : 0
property int decimals : 0
property real value : 0
signal editingFinished

onEditingFinished: {
Expand All @@ -33,13 +34,13 @@ Item {
TextField {
id: numberField
placeholderText: "0.0"
validator: DoubleValidator{bottom: parent.minimumValue;
top: parent.maximumValue;
decimals: parent.decimals;
validator: DoubleValidator{bottom: gzSpinBoxItem.minimumValue;
top: gzSpinBoxItem.maximumValue;
decimals: gzSpinBoxItem.decimals;
notation: DoubleValidator.StandardNotation;
}
onEditingFinished: {
parent.editingFinished()
gzSpinBoxItem.editingFinished()
}
style: TextFieldStyle{
background: Rectangle {
Expand Down

0 comments on commit 8c223e9

Please sign in to comment.