equal
deleted
inserted
replaced
43 const QString KActionShareName("Share"); |
43 const QString KActionShareName("Share"); |
44 const QString KActionDeleteName("Delete"); |
44 const QString KActionDeleteName("Delete"); |
45 const QString KActionRenameName("Rename"); |
45 const QString KActionRenameName("Rename"); |
46 const QString KActionDetailsName("Details"); |
46 const QString KActionDetailsName("Details"); |
47 |
47 |
|
48 |
48 // public functions |
49 // public functions |
49 |
50 |
50 /* |
51 /* |
51 * Description : constructor |
52 * Description : constructor |
52 */ |
53 */ |
334 } |
335 } |
335 } |
336 } |
336 |
337 |
337 void IRFavoritesView::modelChanged() |
338 void IRFavoritesView::modelChanged() |
338 { |
339 { |
339 QString headingStr = QString::number(iModel->rowCount()) + QString(" ") + hbTrId("txt_irad_subtitle_stations"); |
340 #ifdef SUBTITLE_STR_BY_LOCID |
|
341 QString headingStr = hbTrId("txt_irad_subtitle_favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
342 #else |
|
343 QString headingStr = hbTrId("Favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
344 #endif |
340 setHeadingText(headingStr); |
345 setHeadingText(headingStr); |
341 updateIconIndexArray(); |
346 updateIconIndexArray(); |
342 |
347 |
343 iListView->reset(); |
348 iListView->reset(); |
344 iListView->setCurrentIndex(iModel->index(0)); |
349 iListView->setCurrentIndex(iModel->index(0)); |
361 { |
366 { |
362 popupNote(hbTrId("txt_irad_info_operation_failed"), HbMessageBox::MessageTypeWarning); |
367 popupNote(hbTrId("txt_irad_info_operation_failed"), HbMessageBox::MessageTypeWarning); |
363 } |
368 } |
364 |
369 |
365 updateIconIndexArray(); |
370 updateIconIndexArray(); |
366 QString headingStr = QString::number(iModel->rowCount()) + QString(" ") + hbTrId("txt_irad_subtitle_stations"); |
371 #ifdef SUBTITLE_STR_BY_LOCID |
|
372 QString headingStr = hbTrId("txt_irad_subtitle_favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
373 #else |
|
374 QString headingStr = hbTrId("Favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
375 #endif |
367 setHeadingText(headingStr); |
376 setHeadingText(headingStr); |
368 |
377 |
369 if (!iIconIndexArray.empty()) |
378 if (!iIconIndexArray.empty()) |
370 { |
379 { |
371 iConvertTimer->start(); |
380 iConvertTimer->start(); |
484 |
493 |
485 int current = iListView->currentIndex().row(); |
494 int current = iListView->currentIndex().row(); |
486 if (iModel->deleteOneFavorite(current)) |
495 if (iModel->deleteOneFavorite(current)) |
487 { |
496 { |
488 updateIconIndexArray(); |
497 updateIconIndexArray(); |
489 QString headingStr = QString::number(iModel->rowCount()) + QString(" ") + hbTrId("txt_irad_subtitle_stations"); |
498 #ifdef SUBTITLE_STR_BY_LOCID |
|
499 QString headingStr = hbTrId("txt_irad_subtitle_favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
500 #else |
|
501 QString headingStr = hbTrId("Favorites") + " (" + QString::number(iModel->rowCount()) + ")"; |
|
502 #endif |
490 setHeadingText(headingStr); |
503 setHeadingText(headingStr); |
491 } |
504 } |
492 else |
505 else |
493 { |
506 { |
494 popupNote(hbTrId("txt_irad_info_operation_failed"), HbMessageBox::MessageTypeWarning); |
507 popupNote(hbTrId("txt_irad_info_operation_failed"), HbMessageBox::MessageTypeWarning); |