Commit f0b82c44 authored by Raphael Kubo da Costa (rakuco)'s avatar Raphael Kubo da Costa (rakuco)
Browse files

Use K_PLUGIN_FACTORY to export arkpart.

svn path=/trunk/KDE/kdeutils/ark/; revision=991476
parent d4564463
......@@ -60,15 +60,16 @@
#include <QHeaderView>
#include <QPointer>
typedef KParts::GenericFactory<Part> Factory;
K_EXPORT_COMPONENT_FACTORY(libarkpart, Factory)
K_PLUGIN_FACTORY( ArkPartFactory, registerPlugin< Part >(); )
K_EXPORT_PLUGIN( ArkPartFactory("arkpart") )
Part::Part(QWidget *parentWidget, QObject *parent, const QStringList& args)
Part::Part(QWidget *parentWidget, QObject *parent, const QVariantList& args)
: KParts::ReadWritePart(parent), m_model(new ArchiveModel(this)), m_previewDir(0), m_busy(false),
m_jobTracker(NULL)
{
Q_UNUSED(args);
setComponentData(Factory::componentData());
setComponentData(ArkPartFactory::componentData());
setXMLFile("ark_part.rc");
KVBox *mainWidget = new KVBox(parentWidget);
......
......@@ -44,7 +44,7 @@ class Part: public KParts::ReadWritePart, public Interface
Q_OBJECT
Q_INTERFACES(Interface)
public:
Part(QWidget *parentWidget, QObject *parent, const QStringList &);
Part(QWidget *parentWidget, QObject *parent, const QVariantList &);
~Part();
static KAboutData* createAboutData();
......
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