Skip to content

Commit

Permalink
QML_First
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupesh Yadav committed Sep 16, 2014
1 parent edc0511 commit 9ddc854
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions QML_First/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ Window {
delegate: contactDelegate
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
focus: true

Keys.onLeftPressed: {
grid.moveCurrentIndexLeft();
moveCurrentIndexLeft();
console.log("left"+currentIndex)
grid.model;
}
Keys.onRightPressed: {
grid.moveCurrentIndexRight();
moveCurrentIndexRight();
console.log("Right"+currentIndex)
}
Keys.onUpPressed: {
grid.moveCurrentIndexUp();
moveCurrentIndexUp();
console.log("Up"+ currentIndex)
}
Keys.onDownPressed: {
grid.moveCurrentIndexDown();
moveCurrentIndexDown();
console.log("Down" + currentIndex)
}
}
Expand Down

0 comments on commit 9ddc854

Please sign in to comment.