diff -r 4b686cfad39d -r e6894b852bc6 notes/notesui/notesviews/src/notestodoview.cpp --- a/notes/notesui/notesviews/src/notestodoview.cpp Tue Jun 15 15:22:54 2010 +0100 +++ b/notes/notesui/notesviews/src/notestodoview.cpp Thu Jul 22 16:32:51 2010 +0100 @@ -115,7 +115,11 @@ SIGNAL(longPressed(HbAbstractViewItem *, const QPointF &)), this, SLOT(handleItemLongPressed(HbAbstractViewItem *, const QPointF &))); - + + // Get the empty list string. + mEmptyListLabel = static_cast ( + mDocLoader->findWidget("emptyListLabel")); + // Get the toolbar/menu actions. mAddTodoAction = static_cast ( mDocLoader->findObject("newTodoAction")); @@ -131,8 +135,7 @@ mViewCollectionAction = static_cast ( mDocLoader->findObject("displayCollectionsAction")); - mViewCollectionAction->setCheckable(true); - mViewCollectionAction->setChecked(true); + connect( mViewCollectionAction, SIGNAL(changed()), this, SLOT(handleActionStateChanged())); @@ -439,6 +442,14 @@ AgendaUtil::IncludeIncompletedTodos); mSubTitle->setHeading( hbTrId("txt_notes_subhead_todos_ln_pending",entries.count())); + + if (0 >= entries.count()) { + mEmptyListLabel->show(); + mListView->hide(); + } else { + mEmptyListLabel->hide(); + mListView->show(); + } } /*