删除了serach页面里一些注释了的无用布局

main
shmily744 2023-07-03 16:12:26 +08:00
parent b2c40f9e84
commit 9ea3b2c30b
2 changed files with 116 additions and 125 deletions

View File

@ -156,33 +156,33 @@ Item {
} }
ListModel { ListModel {
id: fileListModel id: fileListModel
// ListElement { ListElement {
// title: "File 1" title: "File 1"
// isDir: true isDir: true
// brief: "This is a test file" brief: "This is a test file"
// type: "FOLDER" type: "FOLDER"
// } }
// ListElement { ListElement {
// uid: "2" uid: "2"
// title: "File 2" title: "File 2"
// isDir: false isDir: false
// brief: "This is a test file" brief: "This is a test file"
// size: 500 size: 500
// type: "WORD" type: "WORD"
// date: "2020-09-09" date: "2020-09-09"
// pageView: 100 pageView: 100
// stars: 10 stars: 10
// } }
// ListElement { ListElement {
// uid: "3" uid: "3"
// title: "File 3" title: "File 3"
// isDir: false isDir: false
// brief: "This is a test file" brief: "This is a test file"
// type: "PPT" type: "PPT"
// date: "2020-09-09" date: "2020-09-09"
// pageView: 100 pageView: 100
// size: 10200000022 size: 10200000022
// stars: 10 stars: 10
// } }
} }
} }

View File

@ -14,111 +14,102 @@ FluArea {
Layout.topMargin: 20 Layout.topMargin: 20
paddings: 10 paddings: 10
// FluText { // FluText {
// Layout.topMargin: 20 // Layout.topMargin: 20
// text: "Search" // text: "Search"
// } // }
/* /*
*/ */
ColumnLayout{ ColumnLayout{
RowLayout{
width:parent.width
FluDropDownButton{
id:select_model
Layout.alignment: Qt.AlignLeft
text:"标题"
items:[
FluMenuItem{
text:"标题"
onClicked: {
select_model.text = text
}
},
FluMenuItem{
text:"内容"
onClicked: {
select_model.text = text
}
},
FluMenuItem{
text:"标签"
onClicked: {
select_model.text = text
}
}
]
}
RowLayout{ FluTextBox{
width:parent.width //placeholderText:""
FluDropDownButton{ Layout.fillWidth: true
id:select_model
Layout.alignment: Qt.AlignLeft
text:"标题"
items:[
FluMenuItem{
text:"标题"
onClicked: {
select_model.text = text
}
},
FluMenuItem{
text:"内容"
onClicked: {
select_model.text = text
}
},
FluMenuItem{
text:"标签"
onClicked: {
select_model.text = text
}
}
]
}
FluTextBox{
//placeholderText:""
Layout.fillWidth: true
} }
FluIconButton{ FluIconButton{
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
iconSource:FluentIcons.Search iconSource:FluentIcons.Search
} }
} }
// //
RowLayout{ RowLayout{
width:parent.width width:parent.width
FluText{ FluText{
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
text:"格式: " text:"格式: "
} }
FluCheckBox{ FluCheckBox{
id:selectAllFormat id:selectAllFormat
text:"all" text:"all"
Component.onCompleted:{ Component.onCompleted:{
clicked() clicked()
} }
onClicked:{ onClicked:{
selectPDFAndWord.checked=true selectPDFAndWord.checked=true
selectVideo.checked=true selectVideo.checked=true
selectPPT.checked=true selectPPT.checked=true
} }
} }
FluCheckBox{ FluCheckBox{
id:selectPDFAndWord id:selectPDFAndWord
text:"pdf/word" text:"pdf/word"
//wrapMode: Text.WordWrap onClicked:{
onClicked:{ selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked }
} }
} FluCheckBox{
FluCheckBox{ id:selectPPT
id:selectPPT text:"ppt"
text:"ppt" onClicked:{
onClicked:{ selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked }
} }
}
FluCheckBox{ FluCheckBox{
id:selectVideo id:selectVideo
text:"video" text:"video"
onClicked:{ onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
} }
} }
} }
Rectangle{ Rectangle{
FileList{ FileList{
Button{
anchors.fill: parent
background: Rectangle{
color: Qt.red
}
}
// anchors.top: tags.anchors.bottom
// anchors.bottom: parent.anchors.bottom
}
}
} }
}
}
} }