FluentUI/example/qml/page/T_ShortcutPicker.qml

43 lines
976 B
QML
Raw Permalink Normal View History

2023-12-02 23:04:02 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import FluentUI 1.0
2024-01-25 17:26:50 +08:00
import "../component"
2023-12-02 23:04:02 +08:00
FluScrollablePage{
2024-03-09 15:35:48 +08:00
title: qsTr("ShortcutPicker")
2023-12-02 23:04:02 +08:00
2024-03-29 16:56:09 +08:00
FluFrame{
2023-12-02 23:04:02 +08:00
Layout.fillWidth: true
2024-05-16 00:35:04 +08:00
Layout.preferredHeight: childrenRect.height
ColumnLayout{
2023-12-02 23:04:02 +08:00
anchors.verticalCenter: parent.verticalCenter
2024-05-16 00:35:04 +08:00
Item{
Layout.preferredHeight: 15
}
Repeater{
model: FluApp.launcher.hotkeys.children
delegate: FluShortcutPicker{
text: model.name
syncHotkey: FluApp.launcher.hotkeys.children[index]
Layout.leftMargin: 15
}
}
Item{
Layout.preferredHeight: 15
}
2023-12-02 23:04:02 +08:00
}
}
2024-05-16 00:35:04 +08:00
2023-12-02 23:04:02 +08:00
CodeExpander{
Layout.fillWidth: true
2024-03-29 16:23:16 +08:00
Layout.topMargin: -6
2023-12-02 23:04:02 +08:00
code:'FluShortcutPicker{
}'
}
}