marble
EarthquakeItem.cpp
Go to the documentation of this file.
96 painter->drawText( QPoint( (arcRect.width() - magnitudeRect.width()) / 2, (arcRect.height() - magnitudeRect.height()) / 2 + metrics.ascent() ), magnitudeText );
131 html += "<tr><td align=\"right\">Magnitude</td><td>" + QString::number( m_magnitude ) + "</td></tr>";
132 html += "<tr><td align=\"right\">Depth</td><td>" + QString::number( m_depth ) + " km</td></tr>";
void setDateTime(const QDateTime &dateTime)
Definition: EarthquakeItem.cpp:102
QString toString(Qt::DateFormat format) const
int ascent() const
void render(QPainter *painter)
void save()
int height() const
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
QString number(int n, int base)
EarthquakeItem(QObject *parent)
Definition: EarthquakeItem.cpp:25
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
This file contains the headers for ViewportParams.
bool isValid() const
void restore()
int width() const
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
Definition: EarthquakeItem.h:23
void setToolTip(const QString &toolTip)
Set the tool tip for the item.
Definition: AbstractDataPluginItem.cpp:76
void setColor(const QColor &color)
bool operator<(const AbstractDataPluginItem *other) const
Definition: EarthquakeItem.cpp:43
void setMagnitude(double magnitude)
Definition: EarthquakeItem.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.