--- 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<CpSettingFormItemData*> CpViewPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const
{
- return new CpSettingFormEntryItemDataImpl<CpSampleView>(
- itemDataHelper,
- tr("Entry item from sample view plugin"),
- tr("view plugin descriptions"));
+ return QList<CpSettingFormItemData*>()
+ << new CpSettingFormEntryItemDataImpl<CpSampleView>(
+ itemDataHelper,
+ tr("Entry item from sample view plugin"),
+ tr("view plugin descriptions"));
}
Q_EXPORT_PLUGIN2(cpviewplugin, CpViewPlugin);