Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickgeocoordinateanimation_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QQUICKGEOCOORDINATEANIMATION_P_H
6#define QQUICKGEOCOORDINATEANIMATION_P_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 <QtPositioningQuick/private/qpositioningquickglobal_p.h>
20#include <QtQuick/private/qquickanimation_p.h>
21#include <QtPositioning/qgeocoordinate.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQuickGeoCoordinateAnimationPrivate;
26
27class Q_POSITIONINGQUICK_EXPORT QQuickGeoCoordinateAnimation : public QQuickPropertyAnimation
28{
29 Q_OBJECT
30 QML_NAMED_ELEMENT(CoordinateAnimation)
31 QML_ADDED_IN_VERSION(5, 3)
32 Q_DECLARE_PRIVATE(QQuickGeoCoordinateAnimation)
33 Q_PROPERTY(QGeoCoordinate from READ from WRITE setFrom OVERRIDE)
34 Q_PROPERTY(QGeoCoordinate to READ to WRITE setTo OVERRIDE)
35 Q_PROPERTY(Direction direction READ direction WRITE setDirection NOTIFY directionChanged
36 BINDABLE bindableDirection)
37
38public:
39 enum Direction {
40 Shortest,
41 West,
42 East
43 };
44 Q_ENUM(Direction)
45
46 QQuickGeoCoordinateAnimation(QObject *parent=0);
47 ~QQuickGeoCoordinateAnimation();
48
49 QGeoCoordinate from() const;
50 void setFrom(const QGeoCoordinate &);
51
52 QGeoCoordinate to() const;
53 void setTo(const QGeoCoordinate &);
54
55 Direction direction() const;
56 void setDirection(Direction direction);
57 QBindable<Direction> bindableDirection();
58
59Q_SIGNALS:
60 void directionChanged();
61};
62
63QVariant Q_POSITIONINGQUICK_EXPORT q_coordinateInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress);
64
65QT_END_NAMESPACE
66
67QML_DECLARE_TYPE(QQuickGeoCoordinateAnimation)
68
69#endif // QQUICKCOORDINATEANIMATION_P_H
Combined button and popup list for selecting options.
QVariant q_coordinateShortestInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
QVariant q_coordinateWestInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
QVariant q_coordinateEastInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)