Marble
VisiblePlacemark.cpp
26VisiblePlacemark::VisiblePlacemark(const GeoDataPlacemark *placemark, const GeoDataCoordinates &coordinates, const GeoDataStyle::ConstPtr &style)
202 textWidth = (QFontMetrics(labelFont).horizontalAdvance(labelName) + qRound(2 * s_labelOutlineWidth));
215void VisiblePlacemark::drawLabelText(QPainter &labelPainter, const QString &text, const QFont &labelFont, LabelStyle labelStyle, const QColor &color)
235 QPen outlinepen((color.red() + color.green() + color.blue()) / 3 < 160 ? Qt::white : Qt::black);
a class representing a point of interest on the map
Definition GeoDataPlacemark.h:47
QString displayName() const
displays the name of a place in the locale language of the user
Definition GeoDataPlacemark.cpp:275
const QPointF & symbolPosition() const
Returns the position of the place mark symbol on the map.
Definition VisiblePlacemark.cpp:73
const QPixmap & labelPixmap()
Returns the pixmap of the place mark name label.
Definition VisiblePlacemark.cpp:118
const QString & symbolId() const
Returns the id for the place mark symbol.
Definition VisiblePlacemark.cpp:55
const GeoDataPlacemark * placemark() const
Returns the index of the place mark model which is associated with this visible place mark.
Definition VisiblePlacemark.cpp:39
const QPointF hotSpot() const
Returns the top left corner of the place mark symbol's hot spot.
Definition VisiblePlacemark.cpp:78
void setLabelRect(const QRectF &area)
Sets the area covered by the place mark name label on the map.
Definition VisiblePlacemark.cpp:146
void setSymbolPosition(const QPointF &position)
Sets the position of the place mark symbol on the map.
Definition VisiblePlacemark.cpp:113
const QPixmap & symbolPixmap() const
Returns the pixmap of the place mark symbol.
Definition VisiblePlacemark.cpp:44
const QRectF & labelRect() const
Returns the area covered by the place mark name label on the map.
Definition VisiblePlacemark.cpp:141
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
int blue() const const
int green() const const
int red() const const
Bold
void setWeight(Weight weight)
int ascent() const const
int height() const const
int horizontalAdvance(QChar ch) const const
QPalette palette()
Q_EMITQ_EMIT
Antialiasing
void drawPath(const QPainterPath &path)
void drawText(const QPoint &position, const QString &text)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
void setBrush(Qt::BrushStyle style)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void addText(const QPointF &point, const QFont &font, const QString &text)
void fill(const QColor &color)
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
bool isNull() const const
QSize size() const const
bool find(const Key &key, QPixmap *pixmap)
Key insert(const QPixmap &pixmap)
void setX(qreal x)
void setY(qreal y)
qreal x() const const
qreal y() const const
bool isEmpty() const const
int height() const const
int width() const const
void clear()
bool isEmpty() const const
QString number(double n, char format, int precision)
transparent
NoPen
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.