From 8b0a0c7c981be16f9a8641e8b6436d05ea888c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 24 Mar 2023 22:13:41 +0800 Subject: [PATCH] update --- example/T_Typography.qml | 6 +++++- example/main.cpp | 1 - src/controls/FluContentDialog.qml | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/example/T_Typography.qml b/example/T_Typography.qml index d602fd1e..1f2eb2c6 100644 --- a/example/T_Typography.qml +++ b/example/T_Typography.qml @@ -8,6 +8,10 @@ FluContentPage { title: "Typography" property int textSize: 13 + Component.onCompleted: { + slider.seek(31) + } + ScrollView{ clip: true width: parent.width @@ -68,6 +72,7 @@ FluContentPage { FluSlider{ + id:slider orientation:FluSlider.Vertical anchors{ right: parent.right @@ -78,7 +83,6 @@ FluContentPage { onValueChanged:{ textSize = value/100*16+8 } - value: 31 } } diff --git a/example/main.cpp b/example/main.cpp index 5fd27efb..5fa46be7 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -18,7 +18,6 @@ int main(int argc, char *argv[]) QCoreApplication::setOrganizationName("ZhuZiChu"); QCoreApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QCoreApplication::setApplicationName("FluentUI"); -// QQuickWindow::setSceneGraphBackend(QSGRendererInterface::Software); QQuickStyle::setStyle("Basic"); QGuiApplication app(argc, argv); QQmlApplicationEngine engine; diff --git a/src/controls/FluContentDialog.qml b/src/controls/FluContentDialog.qml index 2173c32f..9c3911e6 100644 --- a/src/controls/FluContentDialog.qml +++ b/src/controls/FluContentDialog.qml @@ -22,7 +22,8 @@ Popup { modal:true anchors.centerIn: Overlay.overlay closePolicy: Popup.CloseOnEscape - background: Rectangle { + background:Item{} + contentItem: Rectangle { id:layout_content implicitWidth:minWidth implicitHeight: text_title.height + text_message.height + layout_actions.height