--- a/emailuis/nmsettingui/src/nmsettingsformcustomitems.cpp Fri Sep 17 08:27:21 2010 +0300
+++ b/emailuis/nmsettingui/src/nmsettingsformcustomitems.cpp Mon Oct 04 00:05:37 2010 +0300
@@ -58,14 +58,14 @@
HbAbstractViewItem *NmSettingsFormCustomItems::createItem()
{
NM_FUNCTION;
-
+
return new NmSettingsFormCustomItems(*this);
}
bool NmSettingsFormCustomItems::canSetModelIndex(const QModelIndex &index) const
{
NM_FUNCTION;
-
+
int type(index.data(HbDataFormModelItem::ItemTypeRole).toInt());
return type==NmButtonItem;
}
@@ -76,7 +76,7 @@
void NmSettingsFormCustomItems::restore()
{
NM_FUNCTION;
-
+
HbDataFormModelItem::DataItemType itemType = static_cast<HbDataFormModelItem::DataItemType>(
modelIndex().data(HbDataFormModelItem::ItemTypeRole).toInt());
if (itemType==NmButtonItem) {
@@ -102,12 +102,12 @@
HbWidget *NmSettingsFormCustomItems::createCustomWidget()
{
NM_FUNCTION;
-
+
HbDataFormModelItem::DataItemType itemType =
static_cast<HbDataFormModelItem::DataItemType>(
modelIndex().data(HbDataFormModelItem::ItemTypeRole).toInt());
- HbWidget *widget = 0;
+ HbWidget *widget = NULL;
switch (itemType) {
case NmButtonItem: {