diff options
author | Mavridis Philippe <[email protected]> | 2021-12-12 15:50:37 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2022-01-14 12:39:01 +0200 |
commit | 6668b34bc5deb36e73aa45e0457ed6740f828efd (patch) | |
tree | f2ff95858cc06d5eaad187b6750717a58a175a60 /kweather/prefdialogdata.ui | |
parent | 67e995b6fc4da17811aefb7c8d841c9812e4eec9 (diff) | |
download | tdetoys-6668b34bc5deb36e73aa45e0457ed6740f828efd.tar.gz tdetoys-6668b34bc5deb36e73aa45e0457ed6740f828efd.zip |
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 <[email protected]>
Diffstat (limited to 'kweather/prefdialogdata.ui')
-rw-r--r-- | kweather/prefdialogdata.ui | 63 |
1 files changed, 54 insertions, 9 deletions
diff --git a/kweather/prefdialogdata.ui b/kweather/prefdialogdata.ui index db4844e..8fa70b1 100644 --- a/kweather/prefdialogdata.ui +++ b/kweather/prefdialogdata.ui @@ -9,8 +9,8 @@ <rect> <x>0</x> <y>0</y> - <width>429</width> - <height>341</height> + <width>761</width> + <height>464</height> </rect> </property> <property name="sizePolicy"> @@ -27,6 +27,9 @@ <height>0</height> </size> </property> + <property name="caption"> + <string>prefsDialogData</string> + </property> <property name="focusPolicy"> <enum>TabFocus</enum> </property> @@ -50,7 +53,7 @@ </sizepolicy> </property> <property name="frameShape"> - <enum>GroupBoxPanel</enum> + <enum>NoFrame</enum> </property> <property name="frameShadow"> <enum>Sunken</enum> @@ -67,7 +70,7 @@ <cstring>TextLabel1_4_2_2</cstring> </property> <property name="text"> - <string>&Location:</string> + <string>Lo&cation:</string> </property> <property name="buddy" stdset="0"> <cstring>m_reportLocation</cstring> @@ -152,7 +155,10 @@ </sizepolicy> </property> <property name="text"> - <string>&Show icon only</string> + <string>Show icon onl&y</string> + </property> + <property name="accel"> + <string>Alt+Y</string> </property> <property name="buttonGroupId"> <number>1</number> @@ -171,6 +177,9 @@ <property name="text"> <string>Show &icon and temperature</string> </property> + <property name="accel"> + <string>Alt+I</string> + </property> <property name="buttonGroupId"> <number>2</number> </property> @@ -180,7 +189,7 @@ <cstring>CheckBox10</cstring> </property> <property name="text"> - <string>Show icon, temperature, &wind and pressure information</string> + <string>Show icon, temperature, wind &and pressure information</string> </property> <property name="checked"> <bool>true</bool> @@ -271,6 +280,44 @@ </widget> </grid> </widget> + <widget class="TQButtonGroup"> + <property name="name"> + <cstring>m_iconTheme</cstring> + </property> + <property name="title"> + <string>Weather Icon</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQRadioButton"> + <property name="name"> + <cstring>m_systemIcons</cstring> + </property> + <property name="text"> + <string>&Use system icon theme</string> + </property> + <property name="accel"> + <string>Alt+U</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + <widget class="TQRadioButton"> + <property name="name"> + <cstring>m_kweatherIcons</cstring> + </property> + <property name="text"> + <string>Use &KWeather theme</string> + </property> + <property name="accel"> + <string>Alt+K</string> + </property> + </widget> + </vbox> + </widget> <widget class="TQGroupBox"> <property name="name"> <cstring>groupBox3</cstring> @@ -320,7 +367,7 @@ </property> <property name="sizeHint"> <size> - <width>170</width> + <width>637</width> <height>20</height> </size> </property> @@ -329,8 +376,6 @@ </widget> </vbox> </widget> -<customwidgets> -</customwidgets> <connections> <connection> <sender>m_enableLog</sender> |