Skip to content

Commit

Permalink
Add some shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Jan 13, 2024
1 parent 7279d40 commit d864736
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,29 @@ ApplicationWindow {
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
}
IconButton {
id: joinDialogButton
ico.name: "cloud_upload"
onClicked: clientDialog.open();
ToolTip.text: "Join game"
ToolTip.visible: pressed
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
Shortcut {
sequence: "Ctrl+J"
onActivated: joinDialogButton.clicked();
}
}
IconButton {
id: settingsDialogButton
ico.name: "settings"
enabled: !root.connectedToServer
onClicked: pageStack.push(Qt.resolvedUrl("Settings.qml"))
ToolTip.text: "Settings"
ToolTip.visible: pressed
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
Shortcut {
sequence: "Ctrl+I"
onActivated: settingsDialogButton.clicked();
}
}
IconButton {
ico.name: "info"
Expand Down

0 comments on commit d864736

Please sign in to comment.