Qt 6.x
The Qt SDK
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
4#ifndef QDECLARATIVEROUTEMAPITEM_H_
5#define QDECLARATIVEROUTEMAPITEM_H_
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtLocation/private/qdeclarativegeomapitembase_p.h>
20#include <QtLocation/private/qdeclarativegeomap_p.h>
21#include <QtLocation/private/qdeclarativepolylinemapitem_p.h>
22#include <QtLocation/QGeoRoute>
23#include <QPen>
24#include <QBrush>
25
27
28class Q_LOCATION_PRIVATE_EXPORT QDeclarativeRouteMapItem : public QDeclarativePolylineMapItem
29{
31 QML_NAMED_ELEMENT(MapRoute)
33
34 Q_PROPERTY(QGeoRoute route READ route WRITE setRoute NOTIFY routeChanged)
35
36public:
37 explicit QDeclarativeRouteMapItem(QQuickItem *parent = nullptr);
39
40 QGeoRoute route() const;
41 void setRoute(const QGeoRoute &route);
42
44 void routeChanged(const QGeoRoute &route);
45
46private slots:
47 void updateRoutePath();
48
49protected:
50 void setPath(const QList<QGeoCoordinate> &value) override;
51
52private:
53 QGeoRoute route_;
54};
55
57
59
60#endif /* QDECLARATIVEROUTEMAPITEM_H_ */
virtual void setPath(const QList< QGeoCoordinate > &value)
void routeChanged(const QGeoRoute &route)
\inmodule QtLocation
Definition qgeoroute.h:24
Definition qlist.h:74
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define slots
#define Q_SIGNALS
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent