homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsaddappstocollectionstate.cpp
equal
deleted
inserted
replaced
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*))); |