Commit bcdf448d authored by R. Harish Navnit's avatar R. Harish Navnit Committed by Pali Rohár

autoreplace plugin port to KF5

parent f362bded
......@@ -27,13 +27,12 @@
#include "autoreplaceconfig.h"
K_PLUGIN_FACTORY(AutoReplacePluginFactory, registerPlugin<AutoReplacePlugin>();)
K_EXPORT_PLUGIN(AutoReplacePluginFactory( "kopete_autoreplace" ))
AutoReplacePlugin * AutoReplacePlugin::pluginStatic_ = 0L;
AutoReplacePlugin::AutoReplacePlugin( QObject *parent, const QVariantList & )
: Kopete::Plugin( AutoReplacePluginFactory::componentData(), parent )
: Kopete::Plugin( parent )
{
if( !pluginStatic_ )
pluginStatic_ = this;
......
......@@ -32,12 +32,11 @@
#include "autoreplaceconfig.h"
K_PLUGIN_FACTORY(AutoReplacePreferencesFactory, registerPlugin<AutoReplacePreferences>();)
K_EXPORT_PLUGIN(AutoReplacePreferencesFactory( "kcm_kopete_autoreplace" ))
// TODO: Use KConfigXT
AutoReplacePreferences::AutoReplacePreferences( QWidget *parent, const QVariantList &args )
: KCModule( AutoReplacePreferencesFactory::componentData(), parent, args )
: KCModule( parent, args )
{
QStringList headerList = (QStringList() << i18n("Text") << i18n("Replacement"));
QVBoxLayout* l = new QVBoxLayout( this );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment