From 6668b34bc5deb36e73aa45e0457ed6740f828efd Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 12 Dec 2021 15:50:37 +0200 Subject: Implemented icon theme option. Changes in this commit include: * The option itself; * A method of updating the option right after Apply or Ok is pressed in the settings dialog; * A new WeatherIconPrivate class to store the methods previously in WeatherIcons, as well as the settings; * Improved icon name helper function in METAR parser; * A few cleanups to the WeatherIcon class. Signed-off-by: Mavridis Philippe --- kweather/kweather.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kweather/kweather.h') diff --git a/kweather/kweather.h b/kweather/kweather.h index 5a3b06e..c8b7113 100644 --- a/kweather/kweather.h +++ b/kweather/kweather.h @@ -68,13 +68,15 @@ private: // Private methods void showWeather(); void writeLogEntry(); void mousePressEvent(TQMouseEvent *e); - + void setUseIconTheme(bool use); + bool attach(); - + TQString reportLocation; TQString fileName; TQString metarData; bool logOn; + bool useIconTheme; bool mFirstRun; int mViewMode; TQTimer *timeOut; -- cgit v1.2.1