Revision: 201023
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:03:13 +0300
changeset 11 96bf8c13fa72
parent 7 446dc0e90e84
child 12 624e91e1e029
Revision: 201023 Kit: 2010125
stateproviders/ftustateprovider/src/ftuwizardmenustate.cpp
wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml
--- a/stateproviders/ftustateprovider/src/ftuwizardmenustate.cpp	Fri Jun 11 13:29:51 2010 +0300
+++ b/stateproviders/ftustateprovider/src/ftuwizardmenustate.cpp	Wed Jun 23 18:03:13 2010 +0300
@@ -171,6 +171,7 @@
 //
 void FtuWizardMenuState::addWizardToListModel(int aIndex)
 {    
+
     WMS_LOG << "::addWizardToListModel idx : " << aIndex;
     FtuContentService* ftuContentService = content();
 
@@ -181,9 +182,13 @@
         connect(addedWizard, SIGNAL(progressUpdated(FtuWizard *, bool, int)), 
                 this, SLOT(updateProgress(FtuWizard *, bool, int)));
 
-    	const FtuWizardSetting& settings = addedWizard->wizardSettings();
-	    QStandardItem* newItem = new QStandardItem();
-	    HbIcon icon (settings.mTocDefaultIcon.absoluteFilePath());
+        const FtuWizardSetting& settings = addedWizard->wizardSettings();
+        QStandardItem* newItem = new QStandardItem();
+        QList<QVariant> iconList;
+        HbIcon icon (settings.mTocDefaultIcon.absoluteFilePath());
+        iconList.append(icon);
+        HbIcon rightIcon(QString(qtTrId("qtg_small_tick")));
+        
         QStringList data;
         data << settings.mTocLabel;
         QDate date = addedWizard->wizardCompletedDate();
@@ -193,11 +198,11 @@
         }
         else
         {
+            iconList.append(rightIcon);
             data << updatedAsString(date);
         }
 
-        //newItem->setBackground(QBrush(Qt::lightGray));
-        newItem->setData(icon, Qt::DecorationRole);
+        newItem->setData(iconList, Qt::DecorationRole);
         newItem->setData(QVariant(data), Qt::DisplayRole);
 
         mModel->appendRow(newItem);        
@@ -272,7 +277,11 @@
     if(index != -1)
     {  
         QStringList data;
-        data << wizards[index]->wizardSettings().mTocLabel;           
+        data << wizards[index]->wizardSettings().mTocLabel;
+        QList<QVariant> iconList;
+        HbIcon icon (wizards[index]->wizardSettings().mTocDefaultIcon.absoluteFilePath());
+        iconList.append(icon);
+        HbIcon rightIcon(QString(qtTrId("qtg_small_tick")));
         
         if(progress < progressCompelete)
         {
@@ -285,7 +294,9 @@
         else
         {         
             QDate date = wizards[index]->wizardCompletedDate();
-            data << updatedAsString(date);            
+            data << updatedAsString(date);
+
+            iconList.append(rightIcon);
 
             XQSettingsManager settingsManager;
             
@@ -297,5 +308,6 @@
 
         }
         mModel->item(index)->setData(QVariant(data), Qt::DisplayRole);
+        mModel->item(index)->setData(iconList, Qt::DecorationRole);
     }
 }
--- a/wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml	Fri Jun 11 13:29:51 2010 +0300
+++ b/wizardproviders/ftuwizardprovider/conf/ftuwizardprovider.confml	Wed Jun 23 18:03:13 2010 +0300
@@ -53,9 +53,9 @@
   </feature>
   <data>
     <KCrUidFtuWizardProvider>
-      <KFtuNumberOfWizardPlugins>1</KFtuNumberOfWizardPlugins>
+      <KFtuNumberOfWizardPlugins>2</KFtuNumberOfWizardPlugins>
       <KFtuWizardPluginPlaceholder1>dataimportftuwizard.manifest</KFtuWizardPluginPlaceholder1>
-      <KFtuWizardPluginPlaceholder2></KFtuWizardPluginPlaceholder2>
+      <KFtuWizardPluginPlaceholder2>ftuemailwizardplugin.manifest</KFtuWizardPluginPlaceholder2>
       <KFtuWizardPluginPlaceholder3></KFtuWizardPluginPlaceholder3>
       <KFtuWizardPluginPlaceholder4></KFtuWizardPluginPlaceholder4>
       <KFtuWizardPluginPlaceholder5></KFtuWizardPluginPlaceholder5>