diff -r 32e56106abf2 -r 66b5fe3c07fd homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsallcollectionsstate.cpp --- 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 #include #include +#include #include @@ -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()