Commit 162fd282 authored by Karel Slaný's avatar Karel Slaný

Exposed message filter field.

parent 4880c3ce
......@@ -141,7 +141,7 @@ Component {
TextField {
id: filter
anchors.top: parent.top
width: parent.width - close.width
width: parent.width - closeFilterButton.width
placeholderText: qsTr("Set filter")
font.pointSize: defaultTextFont.font.pointSize
inputMethodHints: Qt.ImhNoPredictiveText
......@@ -163,24 +163,22 @@ Component {
proxyMessageModel.setFilterRegExpStr(filter.text)
}
}
Image {
id: close
AccessibleImageButton {
id: closeFilterButton
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
sourceSize.height: imgHeight
source: "qrc:/ui/remove.svg"
MouseArea {
anchors.fill: parent
onClicked: {
filterBar.visible = false
filter.clear()
messageList.anchors.top = headerBar.bottom
Qt.inputMethod.hide()
}
accessibleName: qsTr("Clear and hide filter field.")
onClicked: {
filterBar.visible = false
filter.clear()
messageList.anchors.top = headerBar.bottom
Qt.inputMethod.hide()
}
}
} // Rectangle
Text {
AccessibleText {
id: emptyList
visible: false
color: datovkaPalette.text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment