The WeatherChartWidget class provides the weather chart widget. More...
#include <WeatherChartWidget.h>
Public Types | |
| enum | Page { MAIN_PAGE , HIGH_TEMP , LOW_TEMP , WINDSCALE , HUMIDITY } |
| The Page enum The Page enum provides the page index. More... | |
Public Member Functions | |
| WeatherChartWidget (QWidget *parent=nullptr) | |
| Construct a new Weather Chart Widget object. | |
| void | fresh_display (QList< AppWeatherResult::DailyWeather > &weathers) |
| fresh_display | |
| void | switch_to_page (const Page &p) |
| switch_to_page | |
The WeatherChartWidget class provides the weather chart widget.
The Page enum The Page enum provides the page index.
| Enumerator | |
|---|---|
| MAIN_PAGE | main page |
| HIGH_TEMP | high temperature page |
| LOW_TEMP | low temperature page |
| WINDSCALE | wind scale page |
| HUMIDITY | humidity page |
|
explicit |
Construct a new Weather Chart Widget object.
| parent |
| void WeatherChartWidget::fresh_display | ( | QList< AppWeatherResult::DailyWeather > & | weathers | ) |
fresh_display
| weathers | This function is used to refresh the display |
| void WeatherChartWidget::switch_to_page | ( | const Page & | p | ) |
switch_to_page
switch the page to the specified page
| p | the page to be switched |