~ubuntu-branches/ubuntu/precise/kde4libs/precise-security

« back to all changes in this revision

Viewing changes to kutils/ksettings/pluginpage.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-03-03 00:25:28 UTC
  • mfrom: (1.14.15)
  • Revision ID: package-import@ubuntu.com-20120303002528-chhwyfluldkicy5k
Tags: 4:4.8.1-0ubuntu1
* New upstream release
  - Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * PluginPage and add the appropriate plugin information to the KPluginSelector.
38
38
 * This is done using the pluginSelector() method:
39
39
 * \code
40
 
 * typedef KGenericFactory<MyAppPluginConfig, QWidget> MyAppPluginConfigFactory;
41
 
 * K_EXPORT_COMPONENT_FACTORY( kcm_myapppluginconfig, MyAppPluginConfigFactory( "kcm_myapppluginconfig" ) );
 
40
 * K_PLUGIN_FACTORY(MyAppPluginConfigFactory,
 
41
 *                  registerPlugin<MyAppPluginConfig>();
 
42
 *                  )
 
43
 * K_EXPORT_PLUGIN(MyAppConfigFactory("kcm_myapppluginconfig"));
42
44
 *
43
 
 * MyAppPluginConfig( QWidget * parent, const QStringList & args )
44
 
 *     : PluginPage( MyAppPluginConfigFactory::componentData(), parent, args )
 
45
 * MyAppPluginConfig(QWidget * parent, const QVariantList & args)
 
46
 *     : PluginPage(MyAppPluginConfigFactory::componentData(), parent, args)
45
47
 * {
46
48
 *     pluginSelector()->addPlugins( KGlobal::mainComponent().componentName(), i18n( "General Plugins" ), "General" );
47
49
 *     pluginSelector()->addPlugins( KGlobal::mainComponent().componentName(), i18n( "Effects" ), "Effects" );