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
qgeocoordinateobject.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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
5
7
9
10/*
11
12 Note: This class only purpose is to enable conversion between QGeoCoordinate and QDeclarativeGeoWaypoint.
13 Since QGeoCoordinate lives in the QtPositioning module, this class acts as a base for QDeclarativeGeoWaypoint,
14 and contains the bare minimum to convert/compare to a QGeoCoordinate
15
16*/
17
21
26
31
33{
34 return m_coordinate.value() == other.m_coordinate.value();
35}
36
38{
39 return m_coordinate.value() == other;
40}
41
43{
44 return m_coordinate;
45}
46
48{
49 m_coordinate = c; // The signal is emitted automatically if needed
50}
51
53{
54 return QBindable<QGeoCoordinate>(&m_coordinate);
55}
56
58
59#include "moc_qgeocoordinateobject_p.cpp"
60
void setCoordinate(const QGeoCoordinate &c)
QBindable< QGeoCoordinate > bindableCoordinate()
QGeoCoordinateObject(QObject *parent=0)
bool operator==(const QGeoCoordinate &other) const
\inmodule QtPositioning
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN_TAGGED(TYPE, TAG)
Definition qmetatype.h:1384
const GLubyte * c
QSharedPointer< T > other(t)
[5]