messagingapp/msgui/msgapp/src/draftslistview.cpp
changeset 72 6f657153cbc5
parent 52 12db4185673b
--- a/messagingapp/msgui/msgapp/src/draftslistview.cpp	Fri Sep 17 08:28:39 2010 +0300
+++ b/messagingapp/msgui/msgapp/src/draftslistview.cpp	Mon Oct 04 00:13:15 2010 +0300
@@ -98,9 +98,9 @@
     QAbstractItemModel *model = mListView->model();
 
     // Menu items are added/removed based on the item count.
-    connect(mListView->model(), SIGNAL(rowsInserted(QModelIndex, int, int)), this,
+    connect(model, SIGNAL(rowsInserted(QModelIndex, int, int)), this,
         SLOT(handleModelChanged()), Qt::UniqueConnection);
-    connect(mListView->model(), SIGNAL(rowsRemoved(QModelIndex, int, int)), this,
+    connect(model, SIGNAL(rowsRemoved(QModelIndex, int, int)), this,
         SLOT(handleModelChanged()), Qt::UniqueConnection);
 }
 
@@ -158,7 +158,6 @@
         // Create List View.
         mListView = new HbListView(this);
 
-        mListView->setScrollingStyle(HbScrollArea::PanOrFlick);
         mListView->setItemRecycling(true);
         mListView->setUniformItemSizes(true);
         mListView->setClampingStyle(HbScrollArea::BounceBackClamping);