Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/BrowsingPage.qml
Show All 38 Lines | 29 | { | |||
---|---|---|---|---|---|
39 | function searchFor(text) { | 39 | function searchFor(text) { | ||
40 | if (text.length === 0) | 40 | if (text.length === 0) | ||
41 | return; | 41 | return; | ||
42 | Navigation.openCategory(null, "") | 42 | Navigation.openCategory(null, "") | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | signal clearSearch() | 45 | signal clearSearch() | ||
46 | 46 | | |||
47 | readonly property bool compact: page.width < 500 || !applicationWindow().wideScreen | 47 | readonly property bool compact: page.width < 550 || !applicationWindow().wideScreen | ||
48 | 48 | | |||
49 | Kirigami.CardsListView { | 49 | Kirigami.CardsListView { | ||
50 | model: FeaturedModel {} | 50 | model: FeaturedModel {} | ||
51 | currentIndex: -1 | 51 | currentIndex: -1 | ||
52 | delegate: ApplicationDelegate { | 52 | delegate: ApplicationDelegate { | ||
53 | application: model.application | 53 | application: model.application | ||
54 | compact: page.compact | 54 | compact: page.compact | ||
55 | } | 55 | } | ||
56 | } | 56 | } | ||
57 | } | 57 | } |