Преглед на файлове

Frozen Roopesh

Change-Id: Id7c09aae749e71c0e233bc705289fa9f9ffa3352
Donald Carr преди 9 години
родител
ревизия
db534ebec0
променени са 3 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      Gravity.qml
  2. 1 0
      main.cpp
  3. 2 1
      main.qml

+ 1 - 1
Gravity.qml

@@ -40,7 +40,7 @@ Item {
             function addImage() {
                 var colHeight = pictureArray.reduce(function (height, image) { return height + image.height; }, 0)
 
-                if (colHeight < 1.5*root.height) {
+                if (colHeight < settings.columnBufferFactor*root.height) {
                     var item = pictureDelegate.createObject(column)
                     item.y = -colHeight - item.height
                     d.itemCount++

+ 1 - 0
main.cpp

@@ -36,6 +36,7 @@ int main(int argc, char *argv[])
     const QString &artPath = settings.value("artPath","/blackhole/media/art").toString();
 
     model->addSupportedExtension("jpg");
+    model->addSupportedExtension("png");
     model->moveToThread(&scanningThread);
     scanningThread.start();
     //QTimer::singleShot(0, model, [model,artPath]() { model->setModelRoot(artPath); });

+ 2 - 1
main.qml

@@ -16,7 +16,8 @@ Window {
         property int interval: 30
         property bool animateDeath: false
         property bool fitByHeight: true
-        property double pace: 6.0
+        property double pace: 1.0
+        property double columnBufferFactor: 1.2
     }
 
     Rectangle {