diff -r 2c9d3aa5bea2 -r 20bd089f4aaa controlpanel/examples/viewplugin/src/cpviewplugin.cpp --- a/controlpanel/examples/viewplugin/src/cpviewplugin.cpp Thu Apr 01 03:17:51 2010 +0800 +++ b/controlpanel/examples/viewplugin/src/cpviewplugin.cpp Thu Apr 01 03:23:37 2010 +0800 @@ -25,12 +25,13 @@ CpViewPlugin::~CpViewPlugin() { } -CpSettingFormItemData *CpViewPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const +QList CpViewPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const { - return new CpSettingFormEntryItemDataImpl( - itemDataHelper, - tr("Entry item from sample view plugin"), - tr("view plugin descriptions")); + return QList() + << new CpSettingFormEntryItemDataImpl( + itemDataHelper, + tr("Entry item from sample view plugin"), + tr("view plugin descriptions")); } Q_EXPORT_PLUGIN2(cpviewplugin, CpViewPlugin);