Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/BrowsingPage.qml
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 31 | { | |||
---|---|---|---|---|---|
46 | 46 | | |||
47 | signal clearSearch() | 47 | signal clearSearch() | ||
48 | 48 | | |||
49 | readonly property bool compact: page.width < 500 || !applicationWindow().wideScreen | 49 | readonly property bool compact: page.width < 500 || !applicationWindow().wideScreen | ||
50 | 50 | | |||
51 | ListView { | 51 | ListView { | ||
52 | id: browsingView | 52 | id: browsingView | ||
53 | 53 | | |||
54 | headerPositioning: ListView.OverlayHeader | | |||
55 | header: Kirigami.ItemViewHeader { | | |||
56 | backgroundImage.source: "qrc:/banners/coffee.jpg" | | |||
57 | title: page.title | | |||
58 | } | | |||
59 | model: FeaturedModel {} | 54 | model: FeaturedModel {} | ||
60 | spacing: Kirigami.Units.gridUnit | 55 | spacing: Kirigami.Units.gridUnit | ||
61 | currentIndex: -1 | 56 | currentIndex: -1 | ||
62 | delegate: ApplicationDelegate { | 57 | delegate: ApplicationDelegate { | ||
63 | x: Kirigami.Units.gridUnit | 58 | x: Kirigami.Units.gridUnit | ||
64 | width: ListView.view.width - Kirigami.Units.gridUnit*2 | 59 | width: ListView.view.width - Kirigami.Units.gridUnit*2 | ||
65 | application: model.application | 60 | application: model.application | ||
66 | compact: page.compact | 61 | compact: page.compact | ||
67 | } | 62 | } | ||
68 | } | 63 | } | ||
69 | } | 64 | } |