@@ -15,6 +15,12 @@ FocusScope {
15 property bool draggingHorizontally: false
15 property bool draggingHorizontally: false
16 property int dragDistance: 0
16 property int dragDistance: 0
20+ searchField.selectAll();
18 Rectangle {
24 Rectangle {
19 anchors.fill: parent
25 anchors.fill: parent
20 color: "#BF000000"
26 color: "#BF000000"
@@ -40,6 +46,11 @@ FocusScope {
40 anchors { left: parent.left; top: parent.top; right: parent.right; margins: units.gu(1) }
46 anchors { left: parent.left; top: parent.top; right: parent.right; margins: units.gu(1) }
41 placeholderText: i18n.tr("Search...")
47 placeholderText: i18n.tr("Search...")
42 focus: true
48 focus: true
50+ if (searchField.displayText != "" && listLoader.item && listLoader.item.currentItem) {
51+ root.applicationSelected(listLoader.item.currentItem.appId);
@@ -167,6 +178,8 @@ FocusScope {
167 // which messes up the ListView.
178 // which messes up the ListView.
168 height: (Math.ceil(mostUsedGridView.model.count / mostUsedGridView.columns) * mostUsedGridView.delegateHeight) + units.gu(2)
179 height: (Math.ceil(mostUsedGridView.model.count / mostUsedGridView.columns) * mostUsedGridView.delegateHeight) + units.gu(2)
181+ readonly property string appId: model.appId
170 DrawerGridView {
183 DrawerGridView {
171 id: mostUsedGridView
184 id: mostUsedGridView
172 anchors.fill: parent
185 anchors.fill: parent
@@ -209,6 +222,8 @@ FocusScope {
209 color: "#20ffffff"
222 color: "#20ffffff"
210 aspect: UbuntuShape.Flat
223 aspect: UbuntuShape.Flat
225+ readonly property string appId: model.appId
212 // NOTE: Cannot use gridView.rows here as it would evaluate to 0 at first and only update later,
227 // NOTE: Cannot use gridView.rows here as it would evaluate to 0 at first and only update later,
213 // which messes up the ListView.
228 // which messes up the ListView.
214 height: (Math.ceil(gridView.model.count / gridView.columns) * gridView.delegateHeight) +
229 height: (Math.ceil(gridView.model.count / gridView.columns) * gridView.delegateHeight) +