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
22
QT_BEGIN_NAMESPACE
23
24
class
QQuickGeoCoordinateAnimationPrivate
;
25
26
class
Q_POSITIONINGQUICK_EXPORT
QQuickGeoCoordinateAnimation
:
public
QQuickPropertyAnimation
27
{
28
Q_OBJECT
29
QML_NAMED_ELEMENT
(CoordinateAnimation)
30
QML_ADDED_IN_VERSION
(5, 3)
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
37
public:
38
enum
Direction
{
39
Shortest
,
40
West
,
41
East
42
};
43
Q_ENUM
(Direction)
44
45
QQuickGeoCoordinateAnimation
(
QObject
*parent=0);
46
~QQuickGeoCoordinateAnimation
();
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
58
Q_SIGNALS
:
59
void
directionChanged
();
60
};
61
62
QVariant
Q_POSITIONINGQUICK_EXPORT
q_coordinateInterpolator
(
const
QGeoCoordinate
&from,
const
QGeoCoordinate
&to,
qreal
progress);
63
64
QT_END_NAMESPACE
65
66
QML_DECLARE_TYPE
(
QQuickGeoCoordinateAnimation
)
67
68
#endif
// QQUICKCOORDINATEANIMATION_P_H
QGeoCoordinate
\inmodule QtPositioning
Definition
qgeocoordinate.h:22
QObject
\inmodule QtCore
Definition
qobject.h:103
QQuickGeoCoordinateAnimationPrivate
Definition
qquickgeocoordinateanimation_p_p.h:25
QQuickGeoCoordinateAnimation
Definition
qquickgeocoordinateanimation_p.h:27
QQuickGeoCoordinateAnimation::directionChanged
void directionChanged()
QQuickGeoCoordinateAnimation::Direction
Direction
Definition
qquickgeocoordinateanimation_p.h:38
QQuickGeoCoordinateAnimation::West
@ West
Definition
qquickgeocoordinateanimation_p.h:40
QQuickGeoCoordinateAnimation::Shortest
@ Shortest
Definition
qquickgeocoordinateanimation_p.h:39
QQuickPropertyAnimation
Definition
qquickanimation_p.h:231
QVariant
\inmodule QtCore
Definition
qvariant.h:65
direction
direction
Definition
doc_src_styles.cpp:42
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QML_DECLARE_TYPE
#define QML_DECLARE_TYPE(TYPE)
Definition
qqml.h:19
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
q_coordinateInterpolator
QVariant Q_POSITIONINGQUICK_EXPORT q_coordinateInterpolator(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
\qmltype CoordinateAnimation \inherits PropertyAnimation \inqmlmodule QtPositioning
Definition
qquickgeocoordinateanimation.cpp:36
Q_ENUM
#define Q_ENUM(x)
Definition
qtmetamacros.h:68
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qreal
double qreal
Definition
qtypes.h:187
qtpositioning
src
positioningquick
qquickgeocoordinateanimation_p.h
Generated by
1.10.0