Browse Source

Points list now flickable.

Neal Wilson 11 years ago
parent
commit
085339cb4a
1 changed files with 10 additions and 4 deletions
  1. 10
    4
      qml/BrewPlot/main.qml

+ 10
- 4
qml/BrewPlot/main.qml View File

138
                 }
138
                 }
139
             }
139
             }
140
             Rectangle {
140
             Rectangle {
141
+                id: plotButton
142
+
141
                 z: 0
143
                 z: 0
142
                 anchors.horizontalCenter: parent.horizontalCenter
144
                 anchors.horizontalCenter: parent.horizontalCenter
143
                 height: buttonText.height + 20; width: buttonText.width + 40
145
                 height: buttonText.height + 20; width: buttonText.width + 40
190
                     }
192
                     }
191
                 }
193
                 }
192
             }
194
             }
193
-            Repeater {
194
-                id: dataView
195
+            ListView {
196
+                spacing: 3
197
+                height: 400
198
+                width: 100
199
+                z: -1
200
+                contentHeight: dataViewModel.count * 35
195
 
201
 
196
                 model: ListModel {
202
                 model: ListModel {
197
                     id: dataViewModel
203
                     id: dataViewModel
205
                     }
211
                     }
206
                     Column {
212
                     Column {
207
                         Text {
213
                         Text {
208
-                            text: "Strength: "+dataViewModel.get(index).ptds+"% TDS"
214
+                            text: "Strength: " + dataViewModel.get(index).ptds + "% TDS"
209
                         }
215
                         }
210
                         Text {
216
                         Text {
211
-                            text: "Extraction: "+Number(dataViewModel.get(index).extraction*100).toFixed(2)+"%"
217
+                            text: "Extraction: " + Number(dataViewModel.get(index).extraction * 100).toFixed(2) + "%"
212
                         }
218
                         }
213
                     }
219
                     }
214
                 }
220
                 }

Loading…
Cancel
Save