equal
deleted
inserted
replaced
124 SLOT(handleItemLongPressed(HbAbstractViewItem *, const QPointF &))); |
124 SLOT(handleItemLongPressed(HbAbstractViewItem *, const QPointF &))); |
125 connect( |
125 connect( |
126 mNotesModel, SIGNAL(rowAdded(QModelIndex)), |
126 mNotesModel, SIGNAL(rowAdded(QModelIndex)), |
127 this, SLOT(scrollTo(QModelIndex))); |
127 this, SLOT(scrollTo(QModelIndex))); |
128 |
128 |
|
129 // Get the empty list label. |
|
130 mEmptyListLabel = static_cast<HbLabel *> ( |
|
131 mDocLoader->findWidget("emptyListLabel")); |
|
132 mEmptyListLabel->hide(); |
|
133 |
129 // Get the view heading label |
134 // Get the view heading label |
130 /* mViewHeading = static_cast<HbLabel *> ( |
|
131 mDocLoader->findWidget("viewHeading"));*/ |
|
132 |
|
133 mSubTitle = static_cast<HbGroupBox *>( |
135 mSubTitle = static_cast<HbGroupBox *>( |
134 mDocLoader->findWidget("viewHeading")); |
136 mDocLoader->findWidget("viewHeading")); |
135 |
137 |
136 // Handles the orientation change for list items |
138 // Handles the orientation change for list items |
137 HbMainWindow *window = hbInstance->allMainWindows().first(); |
139 HbMainWindow *window = hbInstance->allMainWindows().first(); |
538 QList<ulong> entries = mAgendaUtil->entryIds( |
540 QList<ulong> entries = mAgendaUtil->entryIds( |
539 (AgendaUtil::FilterFlags) |
541 (AgendaUtil::FilterFlags) |
540 (AgendaUtil::IncludeNotes |
542 (AgendaUtil::IncludeNotes |
541 | AgendaUtil::IncludeCompletedTodos |
543 | AgendaUtil::IncludeCompletedTodos |
542 | AgendaUtil::IncludeIncompletedTodos)); |
544 | AgendaUtil::IncludeIncompletedTodos)); |
543 int c= entries.count(); |
545 |
|
546 if (0 >= entries.count()) { |
|
547 mEmptyListLabel->show(); |
|
548 mListView->hide(); |
|
549 } else { |
|
550 mEmptyListLabel->hide(); |
|
551 mListView->show(); |
|
552 } |
|
553 |
544 mSubTitle->setHeading( |
554 mSubTitle->setHeading( |
545 hbTrId("txt_notes_subhead_ln_notes",entries.count())); |
555 hbTrId("txt_notes_subhead_ln_notes",entries.count())); |
546 } |
556 } |
547 |
557 |
548 /*! |
558 /*! |