修改search页面

main
shmily744 2023-07-04 12:40:04 +08:00
parent 3aeb07fbb2
commit 8379c965b5
1 changed files with 16 additions and 7 deletions

View File

@ -61,12 +61,15 @@ FluArea {
iconSource:FluentIcons.Search iconSource:FluentIcons.Search
} }
} }
// //
RowLayout{ RowLayout{
id:selectFormat
width:parent.width width:parent.width
FluText{ FluText{
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
text:"格式: " text:"类型: "
} }
FluCheckBox{ FluCheckBox{
id:selectAllFormat id:selectAllFormat
@ -82,26 +85,30 @@ FluArea {
} }
FluCheckBox{ FluCheckBox{
id:selectPDFAndWord id:selectPDFAndWord
text:"pdf/word" text:"Video"
onClicked:{ onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked selectFormat.setAllStatus()
} }
} }
FluCheckBox{ FluCheckBox{
id:selectPPT id:selectPPT
text:"ppt" text:"Doc"
onClicked:{ onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked selectFormat.setAllStatus()
} }
} }
FluCheckBox{ FluCheckBox{
id:selectVideo id:selectVideo
text:"video" text:"Audio"
onClicked:{ 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 {
} }
} }
} }
} }