--- 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<HbLabel *> (
+ mDocLoader->findWidget("emptyListLabel"));
+ mEmptyListLabel->hide();
+
// Get the view heading label
-/* mViewHeading = static_cast<HbLabel *> (
- mDocLoader->findWidget("viewHeading"));*/
-
mSubTitle = static_cast<HbGroupBox *>(
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()));
}