Commit ac21fc2c authored by Camilo Higuita's avatar Camilo Higuita

push updates

parent 2273767a
......@@ -32,7 +32,7 @@ ToolBar
ToolTip.visible: hovered
ToolTip.text: qsTr("Share")
onClicked: isMobile ? android.shareDialog(url) :
onClicked: isMobile ? android.shareDialog(pixViewer.currentPic.url) :
shareDialog.show(pixViewer.currentPic.url)
}
}
......
......@@ -7,7 +7,6 @@ GridView
{
id: folderGridRoot
property int gridSize : 64
signal folderClicked(int index)
clip: true
......@@ -16,7 +15,7 @@ GridView
height: parent.height
cellHeight: gridSize+(contentMargins*2)
cellWidth: gridSize+gridSize
cellWidth: gridSize*2
focus: true
......@@ -39,6 +38,18 @@ GridView
}
}
onWidthChanged:
{
var amount = parseInt(width/(gridSize*2),10)
var leftSpace = parseInt(width-(amount*(gridSize*2)), 10)
var size = parseInt((gridSize*2)+(parseInt(leftSpace/amount, 10)), 10)
size = size > gridSize*2 ? size : gridSize*2
cellWidth = size
// grid.cellHeight = size
}
ScrollBar.vertical: ScrollBar{ visible: true}
}
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