Commit 2ac2d9a1 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Revert "Use K_PLUGIN_FACTORY to export arkpart."

I need more time to figure out why ark_part.rc isn't being read anymore.

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