Commit 1049dc18 authored by Alex Richardson's avatar Alex Richardson
Browse files

Add Q_INTERFACES( Okular::Generator ) to all plugins

This seems to be required with KPluginFactory and Qt5 since without it
KPluginFactory::create<Okular::Generator>() always returns null.

For some reason this requires a complete rebuild before generatorstest
passes.

REVIEW: 123466
parent 8059e5b6
......@@ -31,6 +31,7 @@ class Node;
class CHMGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
CHMGenerator( QObject *parent, const QVariantList &args );
~CHMGenerator();
......
......@@ -17,6 +17,7 @@
class ComicBookGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
ComicBookGenerator( QObject *parent, const QVariantList &args );
......
......@@ -24,6 +24,7 @@ class ObjectRect;
class DjVuGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
DjVuGenerator( QObject *parent, const QVariantList &args );
~DjVuGenerator();
......
......@@ -26,6 +26,7 @@ class ObjectRect;
class DviGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
DviGenerator( QObject *parent, const QVariantList &args );
bool loadDocument( const QString & fileName, QVector< Okular::Page * > & pagesVector );
......
......@@ -14,6 +14,7 @@
class EPubGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
EPubGenerator( QObject *parent, const QVariantList &args );
~EPubGenerator();
......
......@@ -19,6 +19,7 @@
class FaxGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
FaxGenerator( QObject *parent, const QVariantList &args );
......
......@@ -14,6 +14,9 @@
class FictionBookGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
FictionBookGenerator( QObject *parent, const QVariantList &args );
......
......@@ -17,6 +17,9 @@
class KIMGIOGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
KIMGIOGenerator( QObject *parent, const QVariantList &args );
virtual ~KIMGIOGenerator();
......
......@@ -12,6 +12,9 @@
class MobiGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
MobiGenerator( QObject *parent, const QVariantList &args );
~MobiGenerator() {}
......
......@@ -14,6 +14,8 @@
class KOOOGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
KOOOGenerator( QObject *parent, const QVariantList &args );
......
......@@ -22,6 +22,7 @@ class QTextDocument;
class PluckerGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
PluckerGenerator( QObject *parent, const QVariantList &args );
......
......@@ -48,6 +48,7 @@ class PopplerAnnotationProxy;
class PDFGenerator : public Okular::Generator, public Okular::ConfigInterface, public Okular::PrintInterface, public Okular::SaveInterface
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
Q_INTERFACES( Okular::ConfigInterface )
Q_INTERFACES( Okular::PrintInterface )
Q_INTERFACES( Okular::SaveInterface )
......
......@@ -18,6 +18,7 @@
class GSGenerator : public Okular::Generator, public Okular::ConfigInterface
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
Q_INTERFACES( Okular::ConfigInterface )
public:
......
......@@ -18,6 +18,7 @@
class TIFFGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
TIFFGenerator( QObject *parent, const QVariantList &args );
virtual ~TIFFGenerator();
......
......@@ -17,6 +17,7 @@
class TxtGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
TxtGenerator(QObject *parent, const QVariantList &args);
......
......@@ -301,6 +301,7 @@ private:
class XpsGenerator : public Okular::Generator
{
Q_OBJECT
Q_INTERFACES( Okular::Generator )
public:
XpsGenerator( QObject *parent, const QVariantList &args );
virtual ~XpsGenerator();
......
Supports Markdown
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