Browse Source

Fix up SimpleListView

Donald Carr 6 years ago
parent
commit
9610f7626c
2 changed files with 8 additions and 1 deletions
  1. 1 0
      qml/common/ArtImage.qml
  2. 7 1
      qml/views/simplelistview/SimpleListView.qml

+ 1 - 0
qml/common/ArtImage.qml

@@ -9,6 +9,7 @@ Item {
     property int modelIndex
 
     property alias asynchronous: image.asynchronous
+    property alias source: image.source
 
     //color: Qt.rgba(Math.random(255), Math.random(255), Math.random(255), 1.0)
 

+ 7 - 1
qml/views/simplelistview/SimpleListView.qml

@@ -6,7 +6,13 @@ import PictureModel 1.0
 import "../.."
 
 ListView {
-    delegate: ArtImage {}
+    anchors.fill: parent
+
+    delegate: ArtImage {
+        source: path
+        height: size.height
+        width: size.width
+    }
     model: globalUtil.imageModel
 
     PictureModel {