homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsaddappstocollectionstate.cpp
changeset 97 66b5fe3c07fd
parent 86 e4f038c420f7
child 98 e6f74eb7f69f
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
    16  */
    16  */
    17 
    17 
    18 #include <HbDocumentLoader>
    18 #include <HbDocumentLoader>
    19 #include <HbDialog>
    19 #include <HbDialog>
    20 #include <HbListView>
    20 #include <HbListView>
       
    21 #include <HbScrollBar>
    21 #include <QStandardItemModel>
    22 #include <QStandardItemModel>
    22 #include <qfinalstate.h>
    23 #include <qfinalstate.h>
    23 #include <QDebug>
    24 #include <QDebug>
    24 #include <hsmenuservice.h>
    25 #include <hsmenuservice.h>
    25 #include <hbnotificationdialog.h>
    26 #include <hbnotificationdialog.h>
   445         cancel->setParent(mListDialog);
   446         cancel->setParent(mListDialog);
   446         
   447         
   447         mModel = standardItemModel(mCollectionId);
   448         mModel = standardItemModel(mCollectionId);
   448         mModel->setParent(mListDialog);
   449         mModel->setParent(mListDialog);
   449         listView->setModel(mModel);
   450         listView->setModel(mModel);
       
   451         listView->verticalScrollBar()->setInteractive(true);
   450         
   452         
   451         connect(listView, SIGNAL(activated(const QModelIndex &)),
   453         connect(listView, SIGNAL(activated(const QModelIndex &)),
   452                 this, SLOT(collectionSelected(const QModelIndex &)));
   454                 this, SLOT(collectionSelected(const QModelIndex &)));
   453         
   455         
   454         mListDialog->open(this, SLOT(listDialogFinished(HbAction*)));
   456         mListDialog->open(this, SLOT(listDialogFinished(HbAction*)));