Added about dialog.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user