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_p.h
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
4#ifndef QGEOCOORDINATEOBJECT_P_H
5#define QGEOCOORDINATEOBJECT_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 <QtPositioning/private/qpositioningglobal_p.h>
19#include <QObject>
20#include <QProperty>
21#include <QGeoCoordinate>
22#include <QVariantMap>
23
25
26class Q_POSITIONING_EXPORT QGeoCoordinateObject : public QObject
27{
29 Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate NOTIFY
30 coordinateChanged BINDABLE bindableCoordinate)
31
32public:
33 QGeoCoordinateObject(QObject *parent = 0);
34 QGeoCoordinateObject(const QGeoCoordinate &c, QObject *parent = 0);
35 virtual ~QGeoCoordinateObject();
36
37 bool operator==(const QGeoCoordinate &other) const;
38 bool operator==(const QGeoCoordinateObject &other) const;
39 inline bool operator!=(const QGeoCoordinate &other) const {
40 return !operator==(other);
41 }
42 inline bool operator!=(const QGeoCoordinateObject &other) const {
43 return !operator==(other);
44 }
45
46 QGeoCoordinate coordinate() const;
47 void setCoordinate(const QGeoCoordinate &c);
48 QBindable<QGeoCoordinate> bindableCoordinate();
49
52
53protected:
56};
57
59
61 Q_POSITIONING_EXPORT)
62
63#endif // QGEOCOORDINATEOBJECT_P_H
bool operator!=(const QGeoCoordinateObject &other) const
bool operator!=(const QGeoCoordinate &other) const
\inmodule QtPositioning
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
#define QT_DECL_METATYPE_EXTERN_TAGGED(TYPE, TAG, EXPORT)
Definition qmetatype.h:1376
const GLubyte * c
#define Q_OBJECT_BINDABLE_PROPERTY(...)
Definition qproperty.h:1239
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1220
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
QSharedPointer< T > other(t)
[5]