rough ui to add/remove bookmarks

This commit is contained in:
Marco Martin 2012-08-01 18:20:46 +02:00
parent adabbf5fb5
commit 90b7f0503d

View file

@ -54,6 +54,7 @@ MouseEventListener {
mainPage.height = mainPage.implicitHeight * zoom
}
Rectangle {
id: backgroundRectangle
x: -mainFlickable.contentX + mainPage.x
y: 0
anchors {
@ -147,4 +148,18 @@ MouseEventListener {
}
}
}
Rectangle {
anchors {
top: parent.top
right: backgroundRectangle.right
rightMargin: 60
}
width: 30
height: mainPage.bookmarked ? 60 : 20
color: "red"
MouseArea {
anchors.fill: parent
onClicked: mainPage.bookmarked = !mainPage.bookmarked
}
}
}