mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
83 lines
1.8 KiB
QML
83 lines
1.8 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QtQuick.Window
|
|
import FluentUI
|
|
import "../component"
|
|
|
|
FluScrollablePage{
|
|
|
|
title: qsTr("Pivot")
|
|
|
|
FluArea{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 20
|
|
height: 400
|
|
paddings: 10
|
|
|
|
|
|
|
|
FluPivot{
|
|
anchors.fill: parent
|
|
currentIndex: 2
|
|
|
|
FluPivotItem{
|
|
title: qsTr("All")
|
|
contentItem:FluText{
|
|
text: qsTr("All emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem{
|
|
title: qsTr("Unread")
|
|
contentItem: FluText{
|
|
text: qsTr("Unread emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem{
|
|
title: qsTr("Flagged")
|
|
contentItem: FluText{
|
|
text: qsTr("Flagged emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem{
|
|
title: qsTr("Urgent")
|
|
contentItem: FluText{
|
|
text: qsTr("Urgent emails go here.")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
CodeExpander{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: -1
|
|
code:'FluPivot{
|
|
anchors.fill: parent
|
|
FluPivotItem:{
|
|
text: qsTr("All")
|
|
contentItem: FluText{
|
|
text: qsTr("All emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem:{
|
|
text: qsTr("Unread")
|
|
contentItem: FluText{
|
|
text: qsTr("Unread emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem:{
|
|
text: qsTr("Flagged")
|
|
contentItem: FluText{
|
|
text: qsTr("Flagged emails go here.")
|
|
}
|
|
}
|
|
FluPivotItem:{
|
|
text: qsTr("Urgent")
|
|
contentItem: FluText{
|
|
text: qsTr("Urgent emails go here.")
|
|
}
|
|
}
|
|
}
|
|
'
|
|
}
|
|
}
|