@@ -31,6 +31,8 @@ Item {
3131 signal storeClicked()
3232 signal requestFavorite(string scopeId, bool favorite)
3333
34+ state: "browse"
35+
3436 ScopeStyle {
3537 id: scopeStyle
3638 style: { "foreground-color" : "gray",
@@ -62,9 +64,16 @@ Item {
6264 title: i18n.tr("My Feeds")
6365 width: parent.width
6466 showBackButton: true
65− storeEntryEnabled: true
66− searchEntryEnabled: true
67− onBackClicked: root.backClicked()
67+ backIsClose: root.state == "edit"
68+ storeEntryEnabled: root.state == "browse"
69+ searchEntryEnabled: root.state == "browse"
70+ onBackClicked: {
71+ if (backIsClose) {
72+ root.state = "browse"
73+ } else {
74+ root.backClicked()
75+ }
76+ }
6877 onStoreClicked: root.storeClicked();
6978 }
7079
@@ -91,10 +100,12 @@ Item {
91100 item.isFavoriteFeeds = index == 0;
92101 item.scopeStyle = scopeStyle;
93102 item.model = Qt.binding(function() { return results });
103+ item.editMode = Qt.binding(function() { return root.state == "edit" });
94104 }
95105 Connections {
96106 target: item
97107 onRequestFavorite: root.requestFavorite(scopeId, favorite)
108+ onRequestEditMode: root.state = "edit";
98109 }
99110 }
100111 }