删除了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 {
id: fileListModel
// ListElement {
// title: "File 1"
// isDir: true
// brief: "This is a test file"
// type: "FOLDER"
// }
// ListElement {
// uid: "2"
// title: "File 2"
// isDir: false
// brief: "This is a test file"
// size: 500
// type: "WORD"
// date: "2020-09-09"
// pageView: 100
// stars: 10
// }
// ListElement {
// uid: "3"
// title: "File 3"
// isDir: false
// brief: "This is a test file"
// type: "PPT"
// date: "2020-09-09"
// pageView: 100
// size: 10200000022
// stars: 10
// }
ListElement {
title: "File 1"
isDir: true
brief: "This is a test file"
type: "FOLDER"
}
ListElement {
uid: "2"
title: "File 2"
isDir: false
brief: "This is a test file"
size: 500
type: "WORD"
date: "2020-09-09"
pageView: 100
stars: 10
}
ListElement {
uid: "3"
title: "File 3"
isDir: false
brief: "This is a test file"
type: "PPT"
date: "2020-09-09"
pageView: 100
size: 10200000022
stars: 10
}
}
}

View File

@ -14,111 +14,102 @@ FluArea {
Layout.topMargin: 20
paddings: 10
// FluText {
// Layout.topMargin: 20
// text: "Search"
// }
// FluText {
// Layout.topMargin: 20
// 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{
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
}
}
]
}
FluTextBox{
//placeholderText:""
Layout.fillWidth: true
FluTextBox{
//placeholderText:""
Layout.fillWidth: true
}
FluIconButton{
Layout.alignment: Qt.AlignRight
iconSource:FluentIcons.Search
}
}
//
RowLayout{
width:parent.width
FluText{
Layout.alignment: Qt.AlignLeft
text:"格式: "
}
FluCheckBox{
id:selectAllFormat
text:"all"
Component.onCompleted:{
clicked()
}
onClicked:{
selectPDFAndWord.checked=true
selectVideo.checked=true
selectPPT.checked=true
}
}
FluCheckBox{
id:selectPDFAndWord
text:"pdf/word"
//wrapMode: Text.WordWrap
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
FluCheckBox{
id:selectPPT
text:"ppt"
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
}
FluIconButton{
Layout.alignment: Qt.AlignRight
iconSource:FluentIcons.Search
}
}
//
RowLayout{
width:parent.width
FluText{
Layout.alignment: Qt.AlignLeft
text:"格式: "
}
FluCheckBox{
id:selectAllFormat
text:"all"
Component.onCompleted:{
clicked()
}
onClicked:{
selectPDFAndWord.checked=true
selectVideo.checked=true
selectPPT.checked=true
}
}
FluCheckBox{
id:selectPDFAndWord
text:"pdf/word"
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
FluCheckBox{
id:selectPPT
text:"ppt"
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
FluCheckBox{
id:selectVideo
text:"video"
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
}
FluCheckBox{
id:selectVideo
text:"video"
onClicked:{
selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked
}
}
}
Rectangle{
FileList{
Button{
anchors.fill: parent
background: Rectangle{
color: Qt.red
}
}
// anchors.top: tags.anchors.bottom
// anchors.bottom: parent.anchors.bottom
}
}
Rectangle{
FileList{
}
}
}
}
}