From 8c015b115cfee1fc736f2bad82cd80cea1202f07 Mon Sep 17 00:00:00 2001 From: Isaac Sh <424675+Iktwo@users.noreply.github.com> Date: Mon, 10 Aug 2015 10:58:03 -0700 Subject: [PATCH] Update Grid for drop areas --- src/qml/main.qml | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index b538822..ae05f64 100755 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -171,12 +171,39 @@ ApplicationWindow { } GridView { - anchors.fill: parent - model: 5 + /// TODO: verify in landscape mode + anchors { + top: parent.top; topMargin: ScreenValues.statusBarHeight + left: parent.left + right: parent.right + } + + height: 4 * (80 * ScreenValues.dp) + model: 16 interactive: false + cellHeight: height / 4 + cellWidth: width / 4 + delegate: DropArea { - width: 200 - height: 200 + width: GridView.view.cellWidth + height: GridView.view.cellHeight + } + } + + Row { + id: rowFavorites + + anchors.bottom: borderImageNavBar.top + + height: 80 * ScreenValues.dp + + Repeater { + model: 5 + + DropArea { + width: 80 * ScreenValues.dp + height: 80 * ScreenValues.dp + } } }