Added about dialog.

This commit is contained in:
Filippo Scognamiglio
2014-07-27 18:00:18 +02:00
parent cb0e94a6e2
commit c2fca955c4
3 changed files with 120 additions and 0 deletions
+16
View File
@@ -90,6 +90,13 @@ ApplicationWindow{
shadersettings.setScalingIndex(Math.max(oldScaling - 1, 0));
}
}
Action{
id: showAboutAction
text: qsTr("About")
onTriggered: {
aboutDialog.show();
}
}
menuBar: MenuBar {
id: menubar
@@ -114,6 +121,11 @@ ApplicationWindow{
MenuItem {action: zoomIn}
MenuItem {action: zoomOut}
}
Menu{
title: qsTr("Help")
visible: shadersettings.fullscreen ? false : true
MenuItem {action: showAboutAction}
}
}
ApplicationSettings{
id: shadersettings
@@ -156,6 +168,10 @@ ApplicationWindow{
id: settingswindow
visible: false
}
AboutDialog{
id: aboutDialog
visible: false
}
Loader{
id: sizeoverlayloader
z: 3