homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
child 98 e6f74eb7f69f
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp	Mon Sep 27 11:52:00 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp	Wed Oct 06 16:06:24 2010 +0300
@@ -22,6 +22,7 @@
 #include <HbMenu>
 #include <HbAction>
 #include <HbAbstractViewItem>
+#include <HbGroupBox>
 
 #include <cadefs.h>
 
@@ -74,6 +75,9 @@
 
     mModel = HsMenuService::getAllCollectionsModel();
     mMenuView->setModel(mModel);
+    
+    updateLabel();
+    connect(mModel, SIGNAL(countChange()), SLOT(updateLabel()));
 
     HSMENUTEST_FUNC_EXIT("HsAllCollectionsState::construct");
 }
@@ -174,6 +178,16 @@
 }
 
 /*!
+ Slot invoked label has to be changed.
+ */
+void HsAllCollectionsState::updateLabel()
+{
+    mMenuView->viewLabel()->setHeading(
+            hbTrId("txt_applib_subtitle_collections_l1").arg(
+                    mModel->rowCount()));    
+}
+
+/*!
  Slot connected to constructMenu.
  */
 void HsAllCollectionsState::createNewCollection()