Skip to content

Commit

Permalink
Merge pull request #5375 from opengisch/qml_tests
Browse files Browse the repository at this point in the history
Test some `QML` components
  • Loading branch information
nirvn authored Jun 27, 2024
2 parents ddfc566 + 1f9226e commit 3ac3219
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 25 deletions.
1 change: 1 addition & 0 deletions src/qml/editorwidgets/Range.qml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ EditorWidgetBase {
from: !Number.isFinite(rangeItem.min) ? Number.MIN_VALUE : rangeItem.min
to: !Number.isFinite(rangeItem.max) ? Number.MAX_VALUE : rangeItem.max
stepSize: !Number.isFinite(rangeItem.step) ? 1 : rangeItem.step
// TODO: using `rangeItem.parent.value` makes item reuseability harder.
value: rangeItem.parent.value !== undefined && rangeItem.parent.value !== ''
? Number(rangeItem.parent.value)
: from
Expand Down
Loading

1 comment on commit 3ac3219

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.