修改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
}
}
//
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 {
}
}
}
}