FluentUI/example/qml/global/ItemsFooter.qml

43 lines
836 B
QML
Raw Normal View History

2023-05-22 16:17:51 +08:00
pragma Singleton
2023-03-30 17:16:57 +08:00
2023-08-24 15:50:37 +08:00
import QtQuick 2.15
import FluentUI 1.0
2023-03-30 17:16:57 +08:00
FluObject{
2023-04-10 18:17:22 +08:00
property var navigationView
2023-10-19 22:52:36 +08:00
property var paneItemMenu
2023-04-10 18:17:22 +08:00
2023-05-09 19:58:41 +08:00
id:footer_items
2023-03-30 17:16:57 +08:00
FluPaneItemSeparator{}
2023-05-09 19:58:41 +08:00
2023-03-30 17:16:57 +08:00
FluPaneItem{
2024-03-09 15:35:48 +08:00
title:qsTr("About")
2023-04-10 18:17:22 +08:00
icon:FluentIcons.Contact
2023-08-26 17:20:30 +08:00
onTapListener:function(){
2024-03-27 00:36:56 +08:00
FluRouter.navigate("/about")
2023-03-30 17:16:57 +08:00
}
}
2023-05-09 19:58:41 +08:00
2023-03-30 17:16:57 +08:00
FluPaneItem{
2024-03-09 15:35:48 +08:00
title:qsTr("Settings")
2023-10-19 22:52:36 +08:00
menuDelegate: paneItemMenu
2023-04-10 18:17:22 +08:00
icon:FluentIcons.Settings
2023-08-26 17:20:30 +08:00
url:"qrc:/example/qml/page/T_Settings.qml"
2023-03-30 17:16:57 +08:00
onTap:{
2023-08-26 17:20:30 +08:00
navigationView.push(url)
2023-03-30 17:16:57 +08:00
}
}
2023-05-09 19:58:41 +08:00
2024-07-10 12:31:09 +08:00
FluPaneItem{
title:qsTr("FluentUI Pro")
menuDelegate: paneItemMenu
icon: FluentIcons.Airplane
url:"qrc:/example/qml/page/T_FluentPro.qml"
onTap:{
navigationView.push(url)
}
}
2023-03-30 17:16:57 +08:00
}