Add dialog for setting key bindings.
[qzeecontrol] / qml / QZeeControl / main.qml
index 8e72fa9..f6076f6 100644 (file)
@@ -42,8 +42,14 @@ PageStackWindow {
     Menu {
         id: myMenu
         visualParent: pageStack
+
         MenuLayout {
             MenuItem {
+                text: "Edit Key Bindings"
+                onClicked: keyBindingsSettings.open()
+            }
+
+            MenuItem {
                 text: "About"
                 onClicked: aboutDialog.open()
             }
@@ -53,4 +59,9 @@ PageStackWindow {
     AboutDialog{
         id: aboutDialog
     }
+
+    KeyBindingSettings{
+        id: keyBindingsSettings
+        onAccepted: mainPage.loadKeyBindings()
+    }
 }