marble
WeatherItem.cpp
Go to the documentation of this file.
527 html.replace(QLatin1String("%weather_situation_f")+suffix+'%', "file://"+forecast.iconSource());
535 html.replace(QLatin1String("%publish_time_f")+suffix+'%', forecast.publishingTime().toString());
bool hasValidCondition() const
Definition: WeatherData.cpp:354
void stationNameChanged()
void setStyleSheet(const QString &styleSheet)
QString standaloneDayName(int day, FormatType type) const
Definition: FrameGraphicsItem.h:25
const QSize borderSpacing(4, 4)
int width() const
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
void render(QPainter *painter)
bool operator<(const AbstractDataPluginItem *other) const
Definition: WeatherItem.cpp:368
WeatherData currentWeather() const
Definition: WeatherItem.cpp:395
QString minTemperatureString(WeatherData::TemperatureUnit format=WeatherData::Kelvin) const
Definition: WeatherData.cpp:665
QSizeF size() const
QDateTime publishingTime() const
Get the time when the data was published.
Definition: WeatherData.cpp:311
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void descriptionChanged()
void setAlignment(Qt::Alignment align)
Definition: MarbleGraphicsGridLayout.cpp:194
void setFlat(bool)
void setLayout(AbstractMarbleGraphicsLayout *layout)
Set the layout of the graphics item.
Definition: MarbleGraphicsItem.cpp:146
void addItem(ScreenGraphicsItem *item, int row, int column)
Definition: MarbleGraphicsGridLayout.cpp:74
Definition: WeatherData.h:118
QMap< QDate, WeatherData > forecastWeather() const
Definition: WeatherItem.cpp:411
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setIcon(const QIcon &icon)
QLocale system()
T value(int i) const
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
void clear()
int dayOfWeek() const
void setContent(const QString &html, const QUrl &baseUrl=QUrl())
Sets content of the browser.
Definition: PopupLayer.cpp:144
Definition: WeatherData.h:26
void imageChanged()
const char * name() const
QString number(int n, int base)
void setSpacing(int spacing)
Set the spacing between the items inside the layout.
Definition: MarbleGraphicsGridLayout.cpp:209
void fill(uint pixelValue)
void setStationName(const QString &name)
Definition: WeatherItem.cpp:384
virtual bool request(const QString &type)
Test if the item wants to request type again.
Definition: WeatherItem.cpp:354
QSize toSize() const
void setWidth(qreal width)
int toInt(bool *ok, int base) const
QByteArray readAll()
void setForecastWeather(const QMap< QDate, WeatherData > &forecasts)
Definition: WeatherItem.cpp:416
void addForecastWeather(const QList< WeatherData > &forecasts)
Adds additional forecasts to the list.
Definition: WeatherItem.cpp:424
Definition: WeatherData.h:110
void setCheckable(bool)
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
Definition: WeatherData.h:102
QString maxTemperatureString(WeatherData::TemperatureUnit format=WeatherData::Kelvin) const
Definition: WeatherData.cpp:649
void setFixedSize(const QSize &s)
const QSize imageSize(28, 28)
QString & replace(int position, int n, QChar after)
QRectF boundsOnElement(const QString &id) const
bool hasValidMaxTemperature() const
Definition: WeatherData.cpp:655
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the item.
Definition: WeatherItem.cpp:465
QDate currentDate()
GeoDataCoordinates coordinate() const
Definition: BillboardGraphicsItem.cpp:93
int height() const
A label item provides an Item that displays text or images/pixmaps.
Definition: LabelGraphicsItem.h:31
This file contains the headers for MarbleWidget.
void setCoordinates(const GeoDataCoordinates &coordinates, Qt::Alignment alignment)
Sets coordinates.
Definition: PopupLayer.cpp:133
void setMarbleWidget(MarbleWidget *widget)
Definition: WeatherItem.cpp:478
QString description() const
double temperature() const
QDate addDays(int ndays) const
qreal height() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void toggleFavorite()
Definition: AbstractDataPluginItem.cpp:117
void setHeight(qreal height)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This is the class painting a weather item on the screen.
Definition: WeatherItem.h:37
qreal width() const
bool hasValidMinTemperature() const
Definition: WeatherData.cpp:677
void temperatureChanged()
QString image() const
void updated()
void setCurrentWeather(const WeatherData &weather)
Definition: WeatherItem.cpp:400
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 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:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.