equal
deleted
inserted
replaced
482 void NotesTodoView::updateSubTitle(ulong id) |
482 void NotesTodoView::updateSubTitle(ulong id) |
483 { |
483 { |
484 OstTraceFunctionEntry0( NOTESTODOVIEW_UPDATESUBTITLE_ENTRY ); |
484 OstTraceFunctionEntry0( NOTESTODOVIEW_UPDATESUBTITLE_ENTRY ); |
485 Q_UNUSED(id) |
485 Q_UNUSED(id) |
486 |
486 |
487 // Get the number of notes and to-do entries. |
487 // Get the number of incompleted to-do entries. |
488 QList<ulong> entries = mAgendaUtil->entryIds( |
488 QList<ulong> entries = mAgendaUtil->entryIds( |
489 AgendaUtil::IncludeIncompletedTodos); |
489 AgendaUtil::IncludeIncompletedTodos); |
490 mSubTitle->setHeading( |
490 mSubTitle->setHeading( |
491 hbTrId("txt_notes_subhead_todos_ln_pending",entries.count())); |
491 hbTrId("txt_notes_subhead_todos_ln_pending",entries.count())); |
492 |
492 |
493 if (0 >= entries.count()) { |
493 if (0 < mProxyModel->rowCount()) { |
|
494 mEmptyListLabel->hide(); |
|
495 mListView->show(); |
|
496 } else { |
494 mEmptyListLabel->show(); |
497 mEmptyListLabel->show(); |
495 mListView->hide(); |
498 mListView->hide(); |
496 } else { |
|
497 mEmptyListLabel->hide(); |
|
498 mListView->show(); |
|
499 } |
499 } |
500 OstTraceFunctionExit0( NOTESTODOVIEW_UPDATESUBTITLE_EXIT ); |
500 OstTraceFunctionExit0( NOTESTODOVIEW_UPDATESUBTITLE_EXIT ); |
501 } |
501 } |
502 |
502 |
503 /* |
503 /* |