summaryrefslogtreecommitdiff
path: root/tests/auto/qmlinterface/data/TestPlace.qml
blob: e9850c387e442163b2fef8a9b8e1a983f7db5ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

import QtLocation

Place {
    name: "Test Place"
    placeId: "test-place-id"
    attribution: "Place data by Foo"
    categories: [
        Category {
            name: "Test category 1"
            categoryId: "test-category-id-1"
        },
        Category {
            name: "Test category 2"
            categoryId: "test-category-id-2"
        }
    ]
    location: TestLocation { }
    ratings: ({ average: 3.5, maximum: 5.0, count: 10 })
    icon: ({ parameters: { singleUrl: "http://www.example.com/test-icon.png" }})
    supplier: ({
        name: "Test supplier",
        supplierId: "test-supplier-id",
        url: "http://www.example.com/test-supplier",
        icon: ({ parameters : { singleUrl: "http://www.example.com/test-icon.png" }})
    })
    visibility: Place.PrivateVisibility
}