summaryrefslogtreecommitdiff
path: root/examples/location/places/views/EditorialView.qml
blob: f2a50b6c5fb7f17f2c8bb717c255fdc5a9062420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtLocation

//! [PlaceEditorialModel view]
ListView {
    id:view
    property Place place
    signal showEditorial(var editorial)
    model: place.editorialModel
    delegate: EditorialDelegate {
        width: ListView.view.width
        onShowEditorial: view.showEditorial(model)
    }
}
//! [PlaceEditorialModel view]