diff options
Diffstat (limited to 'examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml')
-rw-r--r-- | examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml b/examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml index d2131eeb..e2617651 100644 --- a/examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml +++ b/examples/declarative/tutorials/gettingStarted/parts/part2/MenuBar.qml @@ -50,12 +50,12 @@ Rectangle { //container for the header and the buttons Rectangle{ - + id: labelList height:parent.height/10 width: parent.width color: "steelblue" - + //default z is 0, items with higher z values are shown on top of items with lower z values z: 1 @@ -82,16 +82,16 @@ Rectangle { width: 50 id: editButton buttonColor : menuListView.currentIndex == 1? editColor : Qt.darker(editColor, 1.5) - scale: menuListView.currentIndex == 1? 1.25: 1 + scale: menuListView.currentIndex == 1? 1.25: 1 label: "Edit" radius: 1 //on a button click, change the list's currently selected item to EditMenu onButtonClick: { - menuListView.currentIndex = 1 + menuListView.currentIndex = 1 } - + } @@ -111,7 +111,7 @@ Rectangle { color: editColor width: menuListView.width height: menuBar.height - + } } @@ -129,7 +129,7 @@ Rectangle { //control the movement of the menu switching snapMode: ListView.SnapOneItem orientation: ListView.Horizontal - boundsBehavior: Flickable.StopAtBounds + boundsBehavior: Flickable.StopAtBounds flickDeceleration: 5000 highlightFollowsCurrentItem: true highlightMoveDuration:240 |