-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptionDrawer.qml
42 lines (36 loc) · 1.04 KB
/
OptionDrawer.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
Drawer {
modal: true
Column {
id: optionColumn
anchors.fill: parent
spacing: 15
padding: 15
ImageButton {
id: buttonClose
width: parent.width * 0.75
height: width
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:/files/icons/close.png"
rounded: true
onClicked: {
Qt.quit()
}
}
ImageButton {
id: buttonReload
width: parent.width * 0.8 // somewhat larger scale because of empty border in current icon...
height: width
anchors.horizontalCenter: parent.horizontalCenter
source: "qrc:/files/icons/reload.png"
rounded: true
onClicked: {
if (typeof swipeView.currentItem.reloadPage !== "undefined") {
swipeView.currentItem.reloadPage()
}
}
}
}
}