controlpanel/examples/viewplugin/src/cpviewplugin.cpp
changeset 32 20bd089f4aaa
parent 31 2c9d3aa5bea2
equal deleted inserted replaced
31:2c9d3aa5bea2 32:20bd089f4aaa
    23 }
    23 }
    24 
    24 
    25 CpViewPlugin::~CpViewPlugin()
    25 CpViewPlugin::~CpViewPlugin()
    26 {
    26 {
    27 }
    27 }
    28 CpSettingFormItemData *CpViewPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
    28 QList<CpSettingFormItemData*> CpViewPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
    29 {
    29 {
    30     return new CpSettingFormEntryItemDataImpl<CpSampleView>(
    30     return QList<CpSettingFormItemData*>() 
    31 			itemDataHelper,
    31             << new CpSettingFormEntryItemDataImpl<CpSampleView>(
    32             tr("Entry item from sample view plugin"), 
    32 			   itemDataHelper,
    33 			tr("view plugin descriptions"));
    33                tr("Entry item from sample view plugin"), 
       
    34 			   tr("view plugin descriptions"));
    34 }
    35 }
    35 
    36 
    36 Q_EXPORT_PLUGIN2(cpviewplugin, CpViewPlugin);
    37 Q_EXPORT_PLUGIN2(cpviewplugin, CpViewPlugin);