Commit 4e92bd3f authored by Martin Straka's avatar Martin Straka

Removed quit button from main menu (issue #9)

parent aed0e4ae
......@@ -2,7 +2,12 @@ QT += qml quick network xml sql widgets svg
TEMPLATE = app
APP_NAME = Datovka
VERSION = 0.0.1
# winphone|winrt target.
winphone|winrt {
VERSION = 0.0.1.0
} else {
VERSION = 0.0.1
}
DESCRIPTION = "Mobile client for ISDS"
DEFINES += \
......
......@@ -52,28 +52,11 @@ Component {
anchors.leftMargin: defaultMargin
sourceSize.height: imgHeight
source: "qrc:/ui/datovka@2x.png"
Menu {
id: aboutContextMenu
MenuItem {
text: qsTr("About Datovka")
iconSource: "qrc:/ui/information.svg"
onTriggered: {
gUserName = ""
pageView.push({item: aboutPage, immediate: true})
}
}
MenuItem {
text: qsTr("Exit")
iconSource: "qrc:/ui/close-octagon.svg"
onTriggered: {
Qt.quit()
}
}
}
MouseArea {
anchors.fill: parent
onClicked: {
aboutContextMenu.popup()
gUserName = ""
pageView.push({item: aboutPage, immediate: true})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment