Marble
RouteRequest.cpp
182 if (fontMetric.horizontalAdvance(QString(text)) <= iconSize && fontMetric.height() <= iconSize) {
269void RouteRequest::setPosition(int index, const GeoDataCoordinates &position, const QString &name)
300 d->m_route[index].extendedData().addValue(GeoDataData(QStringLiteral("routingVisited"), visited));
318 visited = d->m_route[index].extendedData().value(QStringLiteral("routingVisited")).value().toBool();
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=nullptr) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates.
Definition GeoDataPlacemark.cpp:206
void setCoordinate(qreal longitude, qreal latitude, qreal altitude=0, GeoDataCoordinates::Unit _unit=GeoDataCoordinates::Radian)
Set the coordinate of the placemark in longitude and latitude.
Definition GeoDataPlacemark.cpp:257
GeoDataCoordinates source() const
The first point, or a default constructed if empty.
Definition RouteRequest.cpp:129
void positionAdded(int index)
An element was added at the given position.
void positionChanged(int index, const GeoDataCoordinates &position)
The value of the n-th element was changed.
void swap(int index1, int index2)
Swaps the given elements at the given positions.
Definition RouteRequest.cpp:221
void setPosition(int index, const GeoDataCoordinates &position, const QString &name=QString())
Change the value of the element at the given position.
Definition RouteRequest.cpp:269
void insert(int index, const GeoDataCoordinates &coordinates, const QString &name=QString())
Add the given element at the given position.
Definition RouteRequest.cpp:207
void routingProfileChanged()
The routing profile was changed.
void positionRemoved(int index)
The element at the given position was removed.
GeoDataCoordinates at(int index) const
Accessor for the n-th position.
Definition RouteRequest.cpp:147
void append(const GeoDataCoordinates &coordinates, const QString &name=QString())
Add the given element to the end.
Definition RouteRequest.cpp:233
GeoDataCoordinates destination() const
The last point, or a default constructed if empty.
Definition RouteRequest.cpp:138
QPixmap pixmap(int index, int size=-1, int margin=2) const
Returns a pixmap which indicates the position of the element.
Definition RouteRequest.cpp:152
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
void setPointSize(int pointSize)
int height() const const
int horizontalAdvance(QChar ch) const const
Format_ARGB32_Premultiplied
void fill(Qt::GlobalColor color)
iterator begin()
bool contains(const Key &key) const const
iterator end()
iterator erase(const_iterator first, const_iterator last)
iterator insert(const Key &key, const T &value)
Q_EMITQ_EMIT
Antialiasing
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawText(const QPoint &position, const QString &text)
const QFont & font() const const
void setBrush(Qt::BrushStyle style)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
AlignCenter
black
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.