ipsservices/nmipssettings/src/nmipssettingsplugin.cpp
changeset 57 ae34e1715e21
parent 51 d845db10c0d4
child 62 a8c646b56683
--- a/ipsservices/nmipssettings/src/nmipssettingsplugin.cpp	Fri Jul 23 19:09:50 2010 +0300
+++ b/ipsservices/nmipssettings/src/nmipssettingsplugin.cpp	Thu Aug 05 21:09:09 2010 +0300
@@ -135,8 +135,6 @@
         connect(mSettingsHelper, SIGNAL(createUserDefinedMode()),
                 this, SLOT(createUserDefinedMode()));
         
-        connect(mForm, SIGNAL(pressed(QModelIndex)),
-                this, SLOT(itemPress(QModelIndex)));
         // Get the value if some ui items need to be hidden.
         QVariant data;
         mSettingsManager->readSetting(IpsServices::UserNameHidden, data);
@@ -657,32 +655,4 @@
     }
 }
 
-/*!
-    Called when item is pressed on the view.
-
-    \param index Index to the pressed item.
-*/
-void NmIpsSettingsPlugin::itemPress(const QModelIndex &index)
-{
-    NM_FUNCTION;
-    
-    int type(index.data(HbDataFormModelItem::ItemTypeRole).toInt());
-    
-    if (type == HbDataFormModelItem::GroupItem) {
-        // Scroll the groupitem to top if needed.
-        HbDataFormViewItem *item = static_cast<HbDataFormViewItem *>(mForm->itemByIndex(index));
-        bool expanded = item->isExpanded();
-        
-        if (!expanded) {
-            mForm->scrollTo(index, HbAbstractItemView::PositionAtTop);
-        }
-    }
-    
-    if (type == HbDataFormModelItem::TextItem) {
-        // Turn off predictive input for line-edit.
-        HbDataFormViewItem *item = static_cast<HbDataFormViewItem *>(mForm->itemByIndex(index));
-        HbWidget *widget = item->dataItemContentWidget();
-        widget->setInputMethodHints(Qt::ImhNoPredictiveText);
-    }
-}
 Q_EXPORT_PLUGIN2(nmipssettings, NmIpsSettingsPlugin);