From 8379c965b54b881df63573faf3b09854ddd65372 Mon Sep 17 00:00:00 2001 From: shmily744 <1527550984@qq.com> Date: Tue, 4 Jul 2023 12:40:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9search=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AicsKnowledgeBase/qml/page/SearchPage.qml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/AicsKnowledgeBase/qml/page/SearchPage.qml b/AicsKnowledgeBase/qml/page/SearchPage.qml index df66917..69a36e6 100644 --- a/AicsKnowledgeBase/qml/page/SearchPage.qml +++ b/AicsKnowledgeBase/qml/page/SearchPage.qml @@ -61,12 +61,15 @@ FluArea { iconSource:FluentIcons.Search } } + + //按文件类型 RowLayout{ + id:selectFormat width:parent.width FluText{ Layout.alignment: Qt.AlignLeft - text:"格式: " + text:"类型: " } FluCheckBox{ id:selectAllFormat @@ -82,26 +85,30 @@ FluArea { } FluCheckBox{ id:selectPDFAndWord - text:"pdf/word" + text:"Video" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } FluCheckBox{ id:selectPPT - text:"ppt" + text:"Doc" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } FluCheckBox{ id:selectVideo - text:"video" + text:"Audio" onClicked:{ - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectFormat.setAllStatus() } } + + function setAllStatus() { + selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + } } @@ -111,5 +118,7 @@ FluArea { } } + + } }