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,6 +138,8 @@ Rectangle {
138 138
                 }
139 139
             }
140 140
             Rectangle {
141
+                id: plotButton
142
+
141 143
                 z: 0
142 144
                 anchors.horizontalCenter: parent.horizontalCenter
143 145
                 height: buttonText.height + 20; width: buttonText.width + 40
@@ -190,8 +192,12 @@ Rectangle {
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 202
                 model: ListModel {
197 203
                     id: dataViewModel
@@ -205,10 +211,10 @@ Rectangle {
205 211
                     }
206 212
                     Column {
207 213
                         Text {
208
-                            text: "Strength: "+dataViewModel.get(index).ptds+"% TDS"
214
+                            text: "Strength: " + dataViewModel.get(index).ptds + "% TDS"
209 215
                         }
210 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