mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-20 08:21:23 +00:00
rough ui to add/remove bookmarks
This commit is contained in:
parent
adabbf5fb5
commit
90b7f0503d
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue