From b1b727030cc90693ae70df14251ec295634db96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 11 Mar 2023 14:41:31 +0800 Subject: [PATCH] update --- example/MainPage.qml | 11 ++++++-- example/T_TimePicker.qml | 61 ++++++++++++++++++++++++++++++++++++++++ example/qml.qrc | 1 + 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 example/T_TimePicker.qml diff --git a/example/MainPage.qml b/example/MainPage.qml index ededab2..1aa8a4b 100644 --- a/example/MainPage.qml +++ b/example/MainPage.qml @@ -8,8 +8,8 @@ import FluentUI 1.0 FluWindow { id:rootwindow - width: 800 - height: 600 + width: 860 + height: 680 title: "FluentUI" minimumWidth: 500 minimumHeight: 400 @@ -59,6 +59,13 @@ FluWindow { } } + FluPaneItem{ + title:"TimePicker" + onTap:{ + nav_view.push("qrc:/T_TimePicker.qml") + } + } + FluPaneItemHeader{ title:"Surface" } diff --git a/example/T_TimePicker.qml b/example/T_TimePicker.qml new file mode 100644 index 0000000..05a2684 --- /dev/null +++ b/example/T_TimePicker.qml @@ -0,0 +1,61 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 +import QtQuick.Window 2.15 +import FluentUI 1.0 + +FluScrollablePage{ + + title:"TimePicker" + + + FluArea{ + width: parent.width + Layout.topMargin: 20 + height: 80 + paddings: 10 + + ColumnLayout{ + + anchors{ + verticalCenter: parent.verticalCenter + left: parent.left + } + + FluText{ + text:"hourFormat=FluTimePicker.H" + } + + FluTimePicker{ + } + + } + } + + + FluArea{ + width: parent.width + Layout.topMargin: 20 + height: 80 + paddings: 10 + + ColumnLayout{ + + anchors{ + verticalCenter: parent.verticalCenter + left: parent.left + } + + FluText{ + text:"hourFormat=FluTimePicker.HH" + } + + FluTimePicker{ + hourFormat:FluTimePicker.HH + } + + } + } + + +} diff --git a/example/qml.qrc b/example/qml.qrc index a985b5c..4738927 100644 --- a/example/qml.qrc +++ b/example/qml.qrc @@ -30,5 +30,6 @@ T_TreeView.qml T_Expander.qml MainPage.qml + T_TimePicker.qml