T_Pivot.qml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import QtQuick
  2. import QtQuick.Controls
  3. import QtQuick.Layouts
  4. import QtQuick.Window
  5. import FluentUI
  6. import "../component"
  7. FluScrollablePage{
  8. title:"Pivot"
  9. leftPadding:10
  10. rightPadding:10
  11. bottomPadding:20
  12. spacing: 0
  13. FluArea{
  14. Layout.fillWidth: true
  15. Layout.topMargin: 20
  16. height: 400
  17. paddings: 10
  18. FluPivot{
  19. anchors.fill: parent
  20. currentIndex: 2
  21. FluPivotItem{
  22. title:"All"
  23. contentItem:FluText{
  24. text:"All emails go here."
  25. }
  26. }
  27. FluPivotItem{
  28. title:"Unread"
  29. contentItem:FluText{
  30. text:"Unread emails go here."
  31. }
  32. }
  33. FluPivotItem{
  34. title:"Flagged"
  35. contentItem:FluText{
  36. text:"Flagged emails go here."
  37. }
  38. }
  39. FluPivotItem{
  40. title:"Urgent"
  41. contentItem:FluText{
  42. text:"Urgent emails go here."
  43. }
  44. }
  45. }
  46. }
  47. CodeExpander{
  48. Layout.fillWidth: true
  49. Layout.topMargin: -1
  50. code:'FluPivot{
  51. anchors.fill: parent
  52. FluPivotItem:{
  53. text:"All"
  54. contentItem: FluText{
  55. text:"All emails go here."
  56. }
  57. }
  58. FluPivotItem:{
  59. text:"Unread"
  60. contentItem: FluText{
  61. text:"Unread emails go here."
  62. }
  63. }
  64. FluPivotItem:{
  65. text:"Flagged"
  66. contentItem: FluText{
  67. text:"Flagged emails go here."
  68. }
  69. }
  70. FluPivotItem:{
  71. text:"Urgent"
  72. contentItem: FluText{
  73. text:"Urgent emails go here."
  74. }
  75. }
  76. }
  77. '
  78. }
  79. }