FluentUI/example/qml/page/T_ShortcutPicker.qml
朱子楚\zhuzi 97b9a789b0 update
2024-03-09 18:26:54 +08:00

37 lines
789 B
QML

import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import FluentUI 1.0
import "../component"
FluScrollablePage{
title: qsTr("ShortcutPicker")
FluArea{
Layout.fillWidth: true
Layout.topMargin: 20
height: 100
paddings: 10
FluShortcutPicker{
anchors.verticalCenter: parent.verticalCenter
title: qsTr("Activate the Shortcut")
message: qsTr("Press the key combination to change the shortcut")
positiveText: qsTr("Save")
neutralText: qsTr("Cancel")
negativeText: qsTr("Reset")
}
}
CodeExpander{
Layout.fillWidth: true
Layout.topMargin: -1
code:'FluShortcutPicker{
}'
}
}