Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 10785b05 authored by KARTSAKI Jenny's avatar KARTSAKI Jenny
Browse files

customize slider step size depending on parameter type

parent 55e86a17
Branches
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ Page {
Layout.preferredHeight: 70;
param: _algorithm.collection["r_freq"];
step: 0.1;
}
C.Numeric {
......@@ -67,6 +68,7 @@ Page {
Layout.preferredHeight: 70;
param: _algorithm.collection["i_size"];
step: 1;
}
C.Numeric {
......@@ -74,6 +76,7 @@ Page {
Layout.preferredHeight: 70;
param: _algorithm.collection["b_blank"];
step: 1;
}
X.Button {
......
......@@ -10,6 +10,7 @@ import dtkCore 1.0 as D
Control {
required property var param;
property alias step: _slid.stepSize;
RowLayout {
anchors.fill: parent;
......@@ -31,8 +32,6 @@ Control {
onValueChanged: {
console.info('Changing value' + _slid.value);
console.info('Changing value' + _slid.stepSize);
param.value = _slid.value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment