Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qdeclarativeroutemapitem_p.h
Go to the documentation of this file.
1
// Copyright (C) 2015 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QDECLARATIVEROUTEMAPITEM_H_
6
#
define
QDECLARATIVEROUTEMAPITEM_H_
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtLocation
/
private
/
qlocationglobal_p
.
h
>
20
#
include
<
QtLocation
/
private
/
qdeclarativegeomapitembase_p
.
h
>
21
#
include
<
QtLocation
/
private
/
qdeclarativegeomap_p
.
h
>
22
#
include
<
QtLocation
/
private
/
qdeclarativepolylinemapitem_p
.
h
>
23
#
include
<
QtLocation
/
QGeoRoute
>
24
#
include
<
QPen
>
25
#
include
<
QBrush
>
26
27
QT_BEGIN_NAMESPACE
28
29
class
Q_LOCATION_EXPORT
QDeclarativeRouteMapItem
:
public
QDeclarativePolylineMapItem
30
{
31
Q_OBJECT
32
QML_NAMED_ELEMENT(MapRoute)
33
QML_ADDED_IN_VERSION(5, 0)
34
35
Q_PROPERTY(QGeoRoute route READ route WRITE setRoute NOTIFY routeChanged)
36
37
public
:
38
explicit
QDeclarativeRouteMapItem(QQuickItem *parent =
nullptr
);
39
~QDeclarativeRouteMapItem();
40
41
QGeoRoute route()
const
;
42
void
setRoute(
const
QGeoRoute &route);
43
44
Q_SIGNALS:
45
void
routeChanged(
const
QGeoRoute &route);
46
47
private
slots:
48
void
updateRoutePath();
49
50
protected
:
51
void
setPath(
const
QList<QGeoCoordinate> &value) override;
52
53
private
:
54
QGeoRoute route_;
55
};
56
57
QT_END_NAMESPACE
58
59
QML_DECLARE_TYPE(
QDeclarativeRouteMapItem
)
60
61
#
endif
/* QDECLARATIVEROUTEMAPITEM_H_ */
QDeclarativeRouteMapItem
Definition
qdeclarativeroutemapitem_p.h:30
qtlocation
src
location
quickmapitems
qdeclarativeroutemapitem_p.h
Generated on
for Qt by
1.18.0