Skip to content

Commit

Permalink
Update Grid for drop areas
Browse files Browse the repository at this point in the history
  • Loading branch information
Iktwo committed Aug 10, 2015
1 parent 33f1f50 commit 8c015b1
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions src/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 8c015b1

Please sign in to comment.