equal
deleted
inserted
replaced
17 |
17 |
18 #include "cntbaseselectionview.h" |
18 #include "cntbaseselectionview.h" |
19 |
19 |
20 #include <hbview.h> |
20 #include <hbview.h> |
21 #include <hblistview.h> |
21 #include <hblistview.h> |
|
22 #include <hbindexfeedback.h> |
|
23 #include <hbscrollbar.h> |
22 #include <hbdocumentloader.h> |
24 #include <hbdocumentloader.h> |
23 #include <hbaction.h> |
25 #include <hbaction.h> |
24 #include <mobcntmodel.h> |
26 #include <mobcntmodel.h> |
25 |
27 |
26 const char *CNT_SELECTION_LISTVIEW_UI_XML = ":/xml/contacts_list.docml"; |
28 const char *CNT_SELECTION_LISTVIEW_UI_XML = ":/xml/contacts_list.docml"; |
35 { |
37 { |
36 qFatal( "Unable to load %S", CNT_SELECTION_LISTVIEW_UI_XML ); |
38 qFatal( "Unable to load %S", CNT_SELECTION_LISTVIEW_UI_XML ); |
37 } |
39 } |
38 mView = static_cast<HbView*>( mDocument->findWidget("view") ); |
40 mView = static_cast<HbView*>( mDocument->findWidget("view") ); |
39 mListView = static_cast<HbListView*>( mDocument->findWidget("listView") ); |
41 mListView = static_cast<HbListView*>( mDocument->findWidget("listView") ); |
|
42 |
|
43 mListView->setFrictionEnabled(true); |
|
44 mListView->setScrollingStyle(HbScrollArea::PanWithFollowOn); |
|
45 mListView->verticalScrollBar()->setInteractive(true); |
|
46 mListView->setUniformItemSizes(true); |
|
47 |
|
48 HbIndexFeedback *indexFeedback = new HbIndexFeedback(mView); |
|
49 indexFeedback->setIndexFeedbackPolicy(HbIndexFeedback::IndexFeedbackSingleCharacter); |
|
50 indexFeedback->setItemView(mListView); |
40 |
51 |
41 mSoftkey = new HbAction(Hb::BackNaviAction, mView); |
52 mSoftkey = new HbAction(Hb::BackNaviAction, mView); |
42 connect( mSoftkey, SIGNAL(triggered()), this, SLOT(closeView()) ); |
53 connect( mSoftkey, SIGNAL(triggered()), this, SLOT(closeView()) ); |
43 } |
54 } |
44 |
55 |