FluentUI/example/qml-Qt6/page/T_ShortcutPicker.qml

36 lines
764 B
QML
Raw Normal View History

2023-12-01 18:14:10 +08:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Window
import FluentUI
2024-01-25 17:26:50 +08:00
import "../component"
2023-12-01 18:14:10 +08:00
FluScrollablePage{
2024-03-09 15:35:48 +08:00
title: qsTr("ShortcutPicker")
2023-12-01 18:14:10 +08:00
FluArea{
Layout.fillWidth: true
Layout.topMargin: 20
height: 100
paddings: 10
FluShortcutPicker{
anchors.verticalCenter: parent.verticalCenter
2024-03-09 18:26:54 +08:00
title: qsTr("Activate the Shortcut")
message: qsTr("Press the key combination to change the shortcut")
positiveText: qsTr("Save")
neutralText: qsTr("Cancel")
negativeText: qsTr("Reset")
2023-12-01 18:14:10 +08:00
}
}
CodeExpander{
Layout.fillWidth: true
Layout.topMargin: -1
code:'FluShortcutPicker{
}'
}
}