File tree 1 file changed +7
-2
lines changed
easyReflectometryApp/Gui/Pages/Sample
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ EaComponents.SideBarColumn {
124
124
125
125
onCurrentIndexChanged: {
126
126
ExGlobals .Constants .proxy .currentItemsIndex = itemsTable .currentIndex
127
+ repsSpinBox .value = ExGlobals .Constants .proxy .currentItemsRepetitions
127
128
}
128
129
129
130
}
@@ -198,6 +199,7 @@ EaComponents.SideBarColumn {
198
199
enabled: true // When a layer is selected
199
200
collapsible: false
200
201
Row {
202
+
201
203
spacing: EaStyle .Sizes .fontPixelSize * 0.5
202
204
203
205
// This integer defines how many repetitions of the layer structure should be
@@ -209,11 +211,14 @@ EaComponents.SideBarColumn {
209
211
text: qsTr (" Number of repetitions:" )
210
212
}
211
213
EaElements .SpinBox {
214
+ id: repsSpinBox
212
215
editable: true
213
216
from: 1
214
217
to: 9999
215
- value: ExGlobals .Constants .proxy .currentItemsRepetitions
216
- onValueChanged: ExGlobals .Constants .proxy .currentItemsRepetitions = value
218
+ value: ExGlobals .Constants .proxy .currentItemsRepetitions
219
+ onValueChanged: {
220
+ ExGlobals .Constants .proxy .currentItemsRepetitions = value
221
+ }
217
222
}
218
223
}
219
224
You can’t perform that action at this time.
0 commit comments