Quellcode durchsuchen

Allow for convenient experiment with itemLimit

Donald Carr vor 8 Jahren
Ursprung
Commit
9eda7724f4
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 0
      qml/main.qml
  2. 1 2
      qml/reel/Reel.qml

+ 1 - 0
qml/main.qml

@@ -98,6 +98,7 @@ Window {
         id: globalSettings
         property int columnCount: 6
         property int interval: 5
+        property int itemLimit: -1
 
         property string effect: ""
         property string view: "Reel"

+ 1 - 2
qml/reel/Reel.qml

@@ -20,7 +20,6 @@ View {
 
     QtObject {
         id: d
-        property int itemLimit: -1
         property real t: 0
         property var priorImage
         property real velocity: 0
@@ -86,7 +85,7 @@ View {
                     if (imageQueue.length) {
                         imageArray.push(imageQueue.pop())
                     } else if (columnIndex === 0) {
-                        if (!(d.itemLimit > 0 && d.itemLimit <= globalUtil.itemCount)) {
+                        if (!(globalSettings.itemLimit > 0 && globalSettings.itemLimit <= globalUtil.itemCount)) {
                             addNewImage()
                         }
                     }