Changeset View
Changeset View
Standalone View
Standalone View
dataengines/weather/ions/ion.cpp
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | |||||
141 | /** | 141 | /** | ||
142 | * Return weather icon to display in an applet when given a condition. | 142 | * Return weather icon to display in an applet when given a condition. | ||
143 | */ | 143 | */ | ||
144 | QString IonInterface::getWeatherIcon(ConditionIcons condition) const | 144 | QString IonInterface::getWeatherIcon(ConditionIcons condition) const | ||
145 | { | 145 | { | ||
146 | switch (condition) { | 146 | switch (condition) { | ||
147 | case ClearDay: | 147 | case ClearDay: | ||
148 | return QStringLiteral("weather-clear"); | 148 | return QStringLiteral("weather-clear"); | ||
149 | case ClearWindyDay: | ||||
150 | return QStringLiteral("weather-clear-wind"); | ||||
149 | case FewCloudsDay: | 151 | case FewCloudsDay: | ||
150 | return QStringLiteral("weather-few-clouds"); | 152 | return QStringLiteral("weather-few-clouds"); | ||
153 | case FewCloudsWindyDay: | ||||
154 | return QStringLiteral("weather-few-clouds-wind"); | ||||
151 | case PartlyCloudyDay: | 155 | case PartlyCloudyDay: | ||
152 | return QStringLiteral("weather-clouds"); | 156 | return QStringLiteral("weather-clouds"); | ||
157 | case PartlyCloudyWindyDay: | ||||
158 | return QStringLiteral("weather-clouds-wind"); | ||||
153 | case Overcast: | 159 | case Overcast: | ||
154 | return QStringLiteral("weather-overcast"); | 160 | return QStringLiteral("weather-overcast"); | ||
161 | case OvercastWindy: | ||||
162 | return QStringLiteral("weather-overcast-wind"); | ||||
155 | case Rain: | 163 | case Rain: | ||
156 | return QStringLiteral("weather-showers"); | 164 | return QStringLiteral("weather-showers"); | ||
157 | case LightRain: | 165 | case LightRain: | ||
158 | return QStringLiteral("weather-showers-scattered"); | 166 | return QStringLiteral("weather-showers-scattered"); | ||
159 | case Showers: | 167 | case Showers: | ||
160 | return QStringLiteral("weather-showers-scattered"); | 168 | return QStringLiteral("weather-showers-scattered"); | ||
161 | case ChanceShowersDay: | 169 | case ChanceShowersDay: | ||
162 | return QStringLiteral("weather-showers-scattered-day"); | 170 | return QStringLiteral("weather-showers-scattered-day"); | ||
Show All 12 Lines | |||||
175 | case LightSnow: | 183 | case LightSnow: | ||
176 | return QStringLiteral("weather-snow-scattered"); | 184 | return QStringLiteral("weather-snow-scattered"); | ||
177 | case Flurries: | 185 | case Flurries: | ||
178 | return QStringLiteral("weather-snow-scattered"); | 186 | return QStringLiteral("weather-snow-scattered"); | ||
179 | case RainSnow: | 187 | case RainSnow: | ||
180 | return QStringLiteral("weather-snow-rain"); | 188 | return QStringLiteral("weather-snow-rain"); | ||
181 | case FewCloudsNight: | 189 | case FewCloudsNight: | ||
182 | return QStringLiteral("weather-few-clouds-night"); | 190 | return QStringLiteral("weather-few-clouds-night"); | ||
191 | case FewCloudsWindyNight: | ||||
192 | return QStringLiteral("weather-few-clouds-wind-night"); | ||||
183 | case PartlyCloudyNight: | 193 | case PartlyCloudyNight: | ||
184 | return QStringLiteral("weather-clouds-night"); | 194 | return QStringLiteral("weather-clouds-night"); | ||
195 | case PartlyCloudyWindyNight: | ||||
196 | return QStringLiteral("weather-clouds-wind-night"); | ||||
185 | case ClearNight: | 197 | case ClearNight: | ||
186 | return QStringLiteral("weather-clear-night"); | 198 | return QStringLiteral("weather-clear-night"); | ||
199 | case ClearWindyNight: | ||||
200 | return QStringLiteral("weather-clear-wind-night"); | ||||
187 | case Mist: | 201 | case Mist: | ||
188 | return QStringLiteral("weather-fog"); | 202 | return QStringLiteral("weather-fog"); | ||
189 | case Haze: | 203 | case Haze: | ||
190 | return QStringLiteral("weather-fog"); | 204 | return QStringLiteral("weather-fog"); | ||
191 | case FreezingRain: | 205 | case FreezingRain: | ||
192 | return QStringLiteral("weather-freezing-rain"); | 206 | return QStringLiteral("weather-freezing-rain"); | ||
193 | case FreezingDrizzle: | 207 | case FreezingDrizzle: | ||
194 | return QStringLiteral("weather-freezing-rain"); | 208 | return QStringLiteral("weather-freezing-rain"); | ||
Show All 17 Lines |