cmmanager/cpipsettingsplugin/src/cpipsettingsview.cpp
changeset 47 cb7afde124a3
parent 46 95d45f234cf3
equal deleted inserted replaced
46:95d45f234cf3 47:cb7afde124a3
    54 CpIpSettingsView::CpIpSettingsView(QGraphicsItem *parent) :
    54 CpIpSettingsView::CpIpSettingsView(QGraphicsItem *parent) :
    55     CpBaseSettingView(0, parent)
    55     CpBaseSettingView(0, parent)
    56 {
    56 {
    57     HbDataForm *form = new HbDataForm();
    57     HbDataForm *form = new HbDataForm();
    58     this->setWidget(form);
    58     this->setWidget(form);
       
    59     form->setHeading(hbTrId("txt_occ_subhead_network_settings"));
    59     CpPluginUtility::addCpItemPrototype(form);
    60     CpPluginUtility::addCpItemPrototype(form);
    60     HbDataFormModel *model = new HbDataFormModel(form);
    61     HbDataFormModel *model = new HbDataFormModel(form);
    61 
    62 
    62     // The parameter given as 0 is a HbDataForm pointer, not parent
    63     // The parameter given as 0 is a HbDataForm pointer, not parent
    63     mItemDataHelper = new CpItemDataHelper(0);
    64     mItemDataHelper = new CpItemDataHelper(0);
    64     mItemDataHelper->setParent(this);
    65     mItemDataHelper->setParent(this);
    65     
    66 
    66     HbDataFormModelItem *modelItem;
    67     HbDataFormModelItem *modelItem;
    67     CpPluginInterface *plugin = NULL;
    68     CpPluginInterface *plugin = NULL;
    68     QDir pluginsDir("\\resource\\qt\\plugins\\controlpanel");
    69     QDir pluginsDir("\\resource\\qt\\plugins\\controlpanel");
    69     QPluginLoader pluginLoader;
    70     QPluginLoader pluginLoader;
    70         
    71