Add a keybindings manager widget

This commit is contained in:
SirBlob committed 2026-09-24 04:58:56 +00:00
1 parent 2df1454219
commit 010ab5fd4c
15 files changed
+926 -1

No files matched your search

@@ -0,0 +1,44 @@
import QtQuick
import qs.Commons
import qs.Ui
Item {
id: root
signal addRequested()
signal closeRequested()
implicitHeight: Math.max(title.implicitHeight, buttons.implicitHeight)
Text {
id: title
anchors.left: parent.left
anchors.right: buttons.left
anchors.rightMargin: Style.spaceReal(8)
anchors.verticalCenter: parent.verticalCenter
text: "Keybindings"
textFormat: Text.PlainText
elide: Text.ElideRight
color: Color.foreground
font.family: Style.font.family
font.pixelSize: Style.font.body
font.bold: true
}
Row {
id: buttons
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: Style.spaceReal(4)
CardIconButton {
icon: ""
onActivated: root.addRequested()
}
CardIconButton {
icon: ""
onActivated: root.closeRequested()
}
}
}