Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QQUICKGEOCOORDINATEANIMATION_P_H
5#define QQUICKGEOCOORDINATEANIMATION_P_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 <QtPositioningQuick/private/qpositioningquickglobal_p.h>
19#include <QtQuick/private/qquickanimation_p.h>
20#include <QtPositioning/qgeocoordinate.h>
21
23
25
26class Q_POSITIONINGQUICK_EXPORT QQuickGeoCoordinateAnimation : public QQuickPropertyAnimation
27{
29 QML_NAMED_ELEMENT(CoordinateAnimation)
31 Q_DECLARE_PRIVATE(QQuickGeoCoordinateAnimation)
32 Q_PROPERTY(QGeoCoordinate from READ from WRITE setFrom)
33 Q_PROPERTY(QGeoCoordinate to READ to WRITE setTo)
34 Q_PROPERTY(Direction direction READ direction WRITE setDirection NOTIFY directionChanged
35 BINDABLE bindableDirection)
36
37public:
38 enum Direction {
41 East
42 };
43 Q_ENUM(Direction)
44
47
48 QGeoCoordinate from() const;
49 void setFrom(const QGeoCoordinate &);
50
51 QGeoCoordinate to() const;
52 void setTo(const QGeoCoordinate &);
53
54 Direction direction() const;
55 void setDirection(Direction direction);
56 QBindable<Direction> bindableDirection();
57
60};
61
62QVariant Q_POSITIONINGQUICK_EXPORT q_coordinateInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress);
63
65
67
68#endif // QQUICKCOORDINATEANIMATION_P_H
\inmodule QtPositioning
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore
Definition qvariant.h:65
direction
Combined button and popup list for selecting options.
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
QVariant Q_POSITIONINGQUICK_EXPORT q_coordinateInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
\qmltype CoordinateAnimation \inherits PropertyAnimation \inqmlmodule QtPositioning
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
double qreal
Definition qtypes.h:187