diff -r 5de72ea7a065 -r 579cc610882e notes/notesui/notesviews/src/notesmainview.cpp --- a/notes/notesui/notesviews/src/notesmainview.cpp Wed Jun 23 18:11:28 2010 +0300 +++ b/notes/notesui/notesviews/src/notesmainview.cpp Tue Jul 06 14:14:56 2010 +0300 @@ -126,10 +126,12 @@ mNotesModel, SIGNAL(rowAdded(QModelIndex)), this, SLOT(scrollTo(QModelIndex))); + // Get the empty list label. + mEmptyListLabel = static_cast ( + mDocLoader->findWidget("emptyListLabel")); + mEmptyListLabel->hide(); + // Get the view heading label -/* mViewHeading = static_cast ( - mDocLoader->findWidget("viewHeading"));*/ - mSubTitle = static_cast( mDocLoader->findWidget("viewHeading")); @@ -540,7 +542,15 @@ (AgendaUtil::IncludeNotes | AgendaUtil::IncludeCompletedTodos | AgendaUtil::IncludeIncompletedTodos)); - int c= entries.count(); + + if (0 >= entries.count()) { + mEmptyListLabel->show(); + mListView->hide(); + } else { + mEmptyListLabel->hide(); + mListView->show(); + } + mSubTitle->setHeading( hbTrId("txt_notes_subhead_ln_notes",entries.count())); }