Commit 01e6a4f1 authored by Camilo Higuita's avatar Camilo Higuita

fixes

parent b821e385
......@@ -19,7 +19,7 @@ Pane
width: 500
height: 400
background: Rectangle
Rectangle
{
anchors.fill: parent
color: pix.altColor()
......@@ -36,7 +36,7 @@ Pane
visible: grid.count === 0
message: "No pics..."
}
ListModel {id: gridModel}
GridView
{
id: grid
......@@ -44,8 +44,7 @@ Pane
// width: Math.min(model.count, Math.floor(parent.width/cellWidth))*cellWidth
width: parent.width
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
// anchors.horizontalCenter: parent.horizontalCenter
cellWidth: picSize + picSpacing
cellHeight: picSize + picSpacing
......@@ -60,7 +59,7 @@ Pane
snapMode: GridView.SnapToRow
// flow: GridView.FlowTopToBottom
// maximumFlickVelocity: albumSize*8
ListModel {id: gridModel}
model: gridModel
highlight: Rectangle
......
......@@ -12,10 +12,17 @@ Image
width: picSize
height: picSize
cache: false
antialiasing: true
fillMode: Image.PreserveAspectFit
source: (url && url.length>0)? "file://"+encodeURIComponent(url) : "qrc:/../assets/face.png"
Rectangle {
id: border; color: 'white'; anchors.centerIn: parent; antialiasing: true
width: img.paintedWidth + 6; height: img.paintedHeight + 6
z: -999
}
MouseArea
{
anchors.fill: parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment