summaryrefslogtreecommitdiffstats
path: root/kweather/metar_parser.h
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-11-13 14:17:53 +0200
committerMavridis Philippe <mavridisf@gmail.com>2022-01-14 12:36:53 +0200
commit0e7033dd09c78eed673bfcde768483f6ad925ff7 (patch)
treea4f4484e6c154ff28c5d67697d6de976807fbf83 /kweather/metar_parser.h
parent5fea80f5693a74ee736300944c0c7204a663b92b (diff)
downloadtdetoys-0e7033dd09c78eed673bfcde768483f6ad925ff7.tar.gz
tdetoys-0e7033dd09c78eed673bfcde768483f6ad925ff7.zip
KWeather: updated icon handling.
The newly added class abstracts away icon names from the main code and has the ability to fall back to "safer" icon choices so as to ensure (if possible) icon theme consistency. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kweather/metar_parser.h')
-rw-r--r--kweather/metar_parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kweather/metar_parser.h b/kweather/metar_parser.h
index 772fe11..a5ab028 100644
--- a/kweather/metar_parser.h
+++ b/kweather/metar_parser.h
@@ -92,7 +92,7 @@ class MetarParser
void calcCurrentIcon();
void calcWindChill();
bool isNight(const TQString &stationID) const;
- TQString iconName( const TQString &icon ) const;
+ TQString iconName( int condition, bool night, int strength = 0 ) const;
/*
* Reset the internal WeatherInfo struct of the class so that