[FeaturesInfoOverlay] Use Non-linear fonction for feature scale filter slider

This commit is contained in:
Grégoire De Lillo 2021-06-18 10:40:27 +02:00
parent f86202f1d8
commit 168c7b8cf9

View file

@ -50,10 +50,10 @@ FloatingPane {
Layout.alignment: Qt.AlignRight
from: 0
to: 1
first.value: root.featuresViewer.featureMinScaleFilter
first.onMoved: { root.featuresViewer.featureMinScaleFilter = first.value; }
second.value: root.featuresViewer.featureMaxScaleFilter
second.onMoved: { root.featuresViewer.featureMaxScaleFilter = second.value; }
first.value: 0
first.onMoved: { root.featuresViewer.featureMinScaleFilter = Math.pow(first.value,4); }
second.value: 1
second.onMoved: { root.featuresViewer.featureMaxScaleFilter = Math.pow(second.value,4); }
stepSize: 0.01
}
}