messagingapp/msgui/msgapp/src/draftslistview.cpp
changeset 67 fc91263aee62
parent 48 4f501b74aeb1
child 76 60a8a215b0ec
--- a/messagingapp/msgui/msgapp/src/draftslistview.cpp	Tue Sep 14 22:54:56 2010 +0530
+++ b/messagingapp/msgui/msgapp/src/draftslistview.cpp	Fri Sep 17 20:01:45 2010 +0530
@@ -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);