equal
deleted
inserted
replaced
69 { |
69 { |
70 if (mDocLoader) { |
70 if (mDocLoader) { |
71 delete mDocLoader; |
71 delete mDocLoader; |
72 mDocLoader = 0; |
72 mDocLoader = 0; |
73 } |
73 } |
|
74 if(mCityListModel){ |
|
75 delete mCityListModel; |
|
76 } |
|
77 |
74 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem.css"); |
78 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem.css"); |
75 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem.widgetml"); |
79 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem.widgetml"); |
76 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem_color.css"); |
80 HbStyleLoader::unregisterFilePath(":/style/hblistviewitem_color.css"); |
77 } |
81 } |
78 |
82 |
242 // Show the time at that location. |
246 // Show the time at that location. |
243 QString timeInfo = dateTime.toString( |
247 QString timeInfo = dateTime.toString( |
244 mSettingsUtility->timeFormatString()); |
248 mSettingsUtility->timeFormatString()); |
245 itemList.insert(value.setNum(ClockHomeCityItem::Time), timeInfo); |
249 itemList.insert(value.setNum(ClockHomeCityItem::Time), timeInfo); |
246 |
250 |
247 // Use the home city specific icons. |
251 //Use the home city specific icons. |
248 // Display day/night indicators. |
252 // Display day/night indicators. |
249 QString dayNightIconPath = ""; |
253 QString dayNightIconPath = ""; |
250 if (isDay(dateTime)) { |
254 if (isDay(dateTime)) { |
251 dayNightIconPath = "qtg_large_clock_home"; |
255 dayNightIconPath = "qtg_large_clock_home"; |
252 } else { |
256 } else { |
287 hbTrId("txt_clk_menu_delete")); |
291 hbTrId("txt_clk_menu_delete")); |
288 |
292 |
289 // Show the menu. |
293 // Show the menu. |
290 itemContextMenu->open(this, SLOT(selectedMenuAction(HbAction*))); |
294 itemContextMenu->open(this, SLOT(selectedMenuAction(HbAction*))); |
291 itemContextMenu->setPreferredPos(coords); |
295 itemContextMenu->setPreferredPos(coords); |
|
296 itemContextMenu->setAttribute( Qt::WA_DeleteOnClose,true); |
292 } |
297 } |
293 |
298 |
294 /*! |
299 /*! |
295 This slot is called when Add location action is triggered. It is responsible |
300 This slot is called when Add location action is triggered. It is responsible |
296 for launching the city selection list. |
301 for launching the city selection list. |