summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <gladhorn@kde.org>2014-08-10 20:02:36 (GMT)
committerFrederik Gladhorn <gladhorn@kde.org>2014-08-10 20:02:36 (GMT)
commit08840a9168b4e100bae16c8e397dda19d155fb9a (patch)
tree6641f07a34324d5008e82725cdf97ac2a0e027cf
parent9398df0a06953ba889f59b42970da0e0315a865b (diff)
Remove old KPart factory
-rw-r--r--part.cpp17
-rw-r--r--part.h12
2 files changed, 0 insertions, 29 deletions
diff --git a/part.cpp b/part.cpp
index 60b7b52..4dd6004 100644
--- a/part.cpp
+++ b/part.cpp
@@ -158,23 +158,6 @@ class FileKeeper
K_PLUGIN_FACTORY(OkularPartFactory, registerPlugin<Okular::Part>();)
-Okular::PartFactory::PartFactory()
-{
-}
-
-Okular::PartFactory::~PartFactory()
-{
-}
-
-QObject *Okular::PartFactory::create(const char *iface, QWidget *parentWidget, QObject *parent, const QVariantList &args, const QString &keyword)
-{
- Q_UNUSED ( keyword );
-
- Okular::Part *object = new Okular::Part( parentWidget, parent, args );
- object->setReadWrite( QLatin1String(iface) == QLatin1String("KParts::ReadWritePart") );
- return object;
-}
-
static QAction* actionForExportFormat( const Okular::ExportFormat& format, QObject *parent = 0 )
{
QAction *act = new QAction( format.description(), parent );
diff --git a/part.h b/part.h
index 9abb693..d47f6c2 100644
--- a/part.h
+++ b/part.h
@@ -353,18 +353,6 @@ class OKULAR_PART_EXPORT Part : public KParts::ReadWritePart, public Okular::Doc
void slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled);
};
-class PartFactory : public KPluginFactory
-{
- Q_OBJECT
-
- public:
- PartFactory();
- virtual ~PartFactory();
-
- protected:
- virtual QObject *create(const char *iface, QWidget *parentWidget, QObject *parent, const QVariantList &args, const QString &keyword);
-};
-
}
#endif