242 // Show the time at that location. |
242 // Show the time at that location. |
243 QString timeInfo = dateTime.toString( |
243 QString timeInfo = dateTime.toString( |
244 mSettingsUtility->timeFormatString()); |
244 mSettingsUtility->timeFormatString()); |
245 itemList.insert(value.setNum(ClockHomeCityItem::Time), timeInfo); |
245 itemList.insert(value.setNum(ClockHomeCityItem::Time), timeInfo); |
246 |
246 |
247 // TODO: Use the home city specific icons. |
247 // Use the home city specific icons. |
248 // Display day/night indicators. |
248 // Display day/night indicators. |
249 QString dayNightIconPath = ""; |
249 QString dayNightIconPath = ""; |
250 if (isDay(dateTime)) { |
250 if (isDay(dateTime)) { |
251 dayNightIconPath = "qtg_large_clock"; |
251 dayNightIconPath = "qtg_large_clock_home"; |
252 } else { |
252 } else { |
253 dayNightIconPath = "qtg_large_clock"; |
253 dayNightIconPath = "qtg_large_clock_night_home"; |
254 } |
254 } |
255 itemList.insert(value.setNum( |
255 itemList.insert(value.setNum( |
256 ClockHomeCityItem::DayNightIndicator), dayNightIconPath); |
256 ClockHomeCityItem::DayNightIndicator), dayNightIconPath); |
257 |
257 |
258 // Show dst icon when needed. |
258 // Show dst icon when needed. |
658 // TODO: change the icon name for night when available. |
658 // TODO: change the icon name for night when available. |
659 QString dayNightIconPath = ""; |
659 QString dayNightIconPath = ""; |
660 if (isDay(dateTime)) { |
660 if (isDay(dateTime)) { |
661 dayNightIconPath = "qtg_large_clock"; |
661 dayNightIconPath = "qtg_large_clock"; |
662 } else { |
662 } else { |
663 dayNightIconPath = "qtg_large_clock"; |
663 dayNightIconPath = "qtg_large_clock_night"; |
664 } |
664 } |
665 decorationString.append(HbIcon(dayNightIconPath)); |
665 decorationString.append(HbIcon(dayNightIconPath)); |
666 |
666 |
667 // Show dst icon when needed. |
667 // Show dst icon when needed. |
668 if (locationInfo.dstOn) { |
668 if (locationInfo.dstOn) { |