on xenial help sign in
Merge
773d857Albert Astals Cid
qml/Dash/FiltersPopover.qml+37
@@ -39,6 +39,43 @@ Popover {
39 id: column
39 id: column
40 width: parent.width
40 width: parent.width
41
41
42+ Item {
43+ width: parent.width
44+ height: resetLabel.height + units.gu(3)
45+
46+ Label {
47+ anchors {
48+ left: parent.left
49+ right: resetLabel.left
50+ margins: units.gu(2)
51+ verticalCenter: parent.verticalCenter
52+ }
53+ text: i18n.tr("Refine your results")
54+ }
55+ Label {
56+ id: resetLabel
57+ anchors {
58+ right: parent.right
59+ rightMargin: units.gu(2)
60+ verticalCenter: parent.verticalCenter
61+ }
62+ text: i18n.tr("Reset")
63+
64+ AbstractButton {
65+ anchors {
66+ fill: parent
67+ rightMargin: units.gu(-2)
68+ leftMargin: units.gu(-2)
69+ topMargin: units.gu(-1)
70+ bottomMargin: units.gu(-1)
71+ }
72+ onClicked: {
73+ scopeView.scope.resetFilters();
74+ }
75+ }
76+ }
77+ }
78+
42 Repeater {
79 Repeater {
43 model: scopeView.scope.filters
80 model: scopeView.scope.filters
44
81