QML UI: Add ViewLog menu

Add a menu entry to show the application log.

Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
Grace Karanja 2015-08-19 10:18:26 +03:00 committed by Dirk Hohndel
parent ee13c5c282
commit 9e53b3082c
2 changed files with 14 additions and 0 deletions

View file

@ -52,6 +52,13 @@ ApplicationWindow {
manager.saveChanges();
}
}
MenuItem {
text: "View Log"
onTriggered: {
stackView.push(logWindow)
}
}
}
StackView {
@ -169,4 +176,9 @@ ApplicationWindow {
id: downloadDivesWindow
visible: false
}
Log {
id: logWindow
visible: false
}
}

View file

@ -6,5 +6,7 @@
<file>DiveList.qml</file>
<file>DiveDetails.qml</file>
<file>DownloadFromDiveComputer.qml</file>
<file>Log.qml</file>
<file>TopBar.qml</file>
</qresource>
</RCC>