controlpanelui/src/cpcategorymodel/src/cpcategorymodelutility.cpp
changeset 33 0cfa53de576f
parent 29 313976a11e23
child 41 ab0490982943
equal deleted inserted replaced
29:313976a11e23 33:0cfa53de576f
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  
    14 * Description:  Utility class for cpcategorymodel.
    15 *
    15 *
    16 */
    16 */
    17 #include "cpcategorymodelutility.h"
    17 #include "cpcategorymodelutility.h"
    18 #include <QString>
    18 #include <QString>
    19 #include <QDir>
    19 #include <QDir>
   179 
   179 
   180         foreach(CpSettingFormItemData *itemData,itemDataList) {
   180         foreach(CpSettingFormItemData *itemData,itemDataList) {
   181             if (itemData) {
   181             if (itemData) {
   182                 //append the new created setting form item to its parent item.
   182                 //append the new created setting form item to its parent item.
   183                 parent->insertChild(startPosition++,itemData);
   183                 parent->insertChild(startPosition++,itemData);
   184 
   184 				//commented this for only loading group plugin when startup
   185                 if (CpCategorySettingFormItemData *categoryItemData 
   185                 /*if (CpCategorySettingFormItemData *categoryItemData 
   186                     = qobject_cast<CpCategorySettingFormItemData*>(itemData)) {
   186                     = qobject_cast<CpCategorySettingFormItemData*>(itemData)) {
   187                     categoryItemData->initialize(itemDataHelper);
   187                     categoryItemData->initialize(itemDataHelper);
   188                 }
   188                 }*/
   189 
   189 
   190                 //set the text and description from config if it is empty.
   190                 //set the text and description from config if it is empty.
   191                 setEntryItemContentIfEmpty(itemData,pluginConfig.mDisplayName,pluginConfig.mDescription);
   191                 setEntryItemContentIfEmpty(itemData,pluginConfig.mDisplayName,pluginConfig.mDescription);
   192             }
   192             }
   193         } //end foreach
   193         } //end foreach