diff --git a/AicsKnowledgeBase/qml/component/FileList.qml b/AicsKnowledgeBase/qml/component/FileList.qml index 642a41b..9e01396 100644 --- a/AicsKnowledgeBase/qml/component/FileList.qml +++ b/AicsKnowledgeBase/qml/component/FileList.qml @@ -8,17 +8,19 @@ Item { signal search(string tag) signal open(string file) + property bool disableHeader: false ListView { id: listView anchors.fill: parent spacing: 10 - header: fileListItemHeader + header: disableHeader ? null :fileListItemHeader model: fileListModel delegate: fileListItemDelegate Component.onCompleted: { update() } } + Component { id: fileListItemHeader Item { diff --git a/AicsKnowledgeBase/qml/page/SearchPage.qml b/AicsKnowledgeBase/qml/page/SearchPage.qml index 69a36e6..c47cfb0 100644 --- a/AicsKnowledgeBase/qml/page/SearchPage.qml +++ b/AicsKnowledgeBase/qml/page/SearchPage.qml @@ -78,20 +78,20 @@ FluArea { clicked() } onClicked:{ - selectPDFAndWord.checked=true selectVideo.checked=true - selectPPT.checked=true + selectDoc.checked=true + selectAudio.checked=true } } FluCheckBox{ - id:selectPDFAndWord + id:selectVideo text:"Video" onClicked:{ selectFormat.setAllStatus() } } FluCheckBox{ - id:selectPPT + id:selectDoc text:"Doc" onClicked:{ selectFormat.setAllStatus() @@ -99,7 +99,7 @@ FluArea { } FluCheckBox{ - id:selectVideo + id:selectAudio text:"Audio" onClicked:{ selectFormat.setAllStatus() @@ -107,18 +107,20 @@ FluArea { } function setAllStatus() { - selectAllFormat.checked = selectPDFAndWord.checked && selectPPT.checked && selectVideo.checked + selectAllFormat.checked = selectVideo.checked && selectDoc.checked && selectAudio.checked } } - Rectangle{ + FluArea{ + backgroundColor: "#f9f9f9" + border.width: 0 + width: parent.width + height: 500 + FileList{ - + disableHeader: true } } - - - } }