Marble
6#ifndef MARBLE_DECLARATIVE_POSITIONSOURCE_H
7#define MARBLE_DECLARATIVE_POSITIONSOURCE_H
10#include "MarbleQuickItem.h"
13#include <qqmlintegration.h>
20class PositionSource :
public QObject
25 Q_PROPERTY(MarbleQuickItem *map READ map WRITE setMap NOTIFY mapChanged)
26 Q_PROPERTY(
bool active READ active WRITE setActive NOTIFY activeChanged)
27 Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged)
28 Q_PROPERTY(
bool hasPosition READ hasPosition NOTIFY hasPositionChanged)
29 Q_PROPERTY(Coordinate *position READ position NOTIFY positionChanged)
30 Q_PROPERTY(qreal speed READ speed NOTIFY speedChanged)
38 void setActive(
bool active);
40 QString source()
const;
42 void setSource(
const QString &source);
44 bool hasPosition()
const;
46 Coordinate *position();
48 MarbleQuickItem *map();
50 void setMap(MarbleQuickItem *map);
61 void hasPositionChanged();
63 void positionChanged();
68 void updatePosition();
79 Coordinate m_position;
81 QPointer<MarbleQuickItem> m_marbleQuickItem;
Binds a QML item to a specific geodetic location in screen coordinates.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.