summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2015-04-22 12:34:32 (GMT)
committerAlex Richardson <arichardson.kde@gmail.com>2015-05-22 15:33:09 (GMT)
commit1049dc188a6138b0b28cb526bb7e513d61e95277 (patch)
treeef85d98bd6e4694db73b28f0c5781194d4169ba8
parent8059e5b686cef4b4a8aab1f62d92255556a3ec09 (diff)
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
-rw-r--r--generators/chm/generator_chm.h1
-rw-r--r--generators/comicbook/generator_comicbook.h1
-rw-r--r--generators/djvu/generator_djvu.h1
-rw-r--r--generators/dvi/generator_dvi.h1
-rw-r--r--generators/epub/generator_epub.h1
-rw-r--r--generators/fax/generator_fax.h1
-rw-r--r--generators/fictionbook/generator_fb.h3
-rw-r--r--generators/kimgio/generator_kimgio.h3
-rw-r--r--generators/mobipocket/generator_mobi.h3
-rw-r--r--generators/ooo/generator_ooo.h2
-rw-r--r--generators/plucker/generator_plucker.h1
-rw-r--r--generators/poppler/generator_pdf.h1
-rw-r--r--generators/spectre/generator_ghostview.h1
-rw-r--r--generators/tiff/generator_tiff.h1
-rw-r--r--generators/txt/generator_txt.h1
-rw-r--r--generators/xps/generator_xps.h1
16 files changed, 23 insertions, 0 deletions
diff --git a/generators/chm/generator_chm.h b/generators/chm/generator_chm.h
index e9f2a8e..fc9f00d 100644
--- a/generators/chm/generator_chm.h
+++ b/generators/chm/generator_chm.h
@@ -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();
diff --git a/generators/comicbook/generator_comicbook.h b/generators/comicbook/generator_comicbook.h
index a521abb..6375640 100644
--- a/generators/comicbook/generator_comicbook.h
+++ b/generators/comicbook/generator_comicbook.h
@@ -17,6 +17,7 @@
class ComicBookGenerator : public Okular::Generator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
ComicBookGenerator( QObject *parent, const QVariantList &args );
diff --git a/generators/djvu/generator_djvu.h b/generators/djvu/generator_djvu.h
index f056fec..8800165 100644
--- a/generators/djvu/generator_djvu.h
+++ b/generators/djvu/generator_djvu.h
@@ -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();
diff --git a/generators/dvi/generator_dvi.h b/generators/dvi/generator_dvi.h
index 1fac6b3..925b4a5 100644
--- a/generators/dvi/generator_dvi.h
+++ b/generators/dvi/generator_dvi.h
@@ -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 );
diff --git a/generators/epub/generator_epub.h b/generators/epub/generator_epub.h
index 3da0191..ca26733 100644
--- a/generators/epub/generator_epub.h
+++ b/generators/epub/generator_epub.h
@@ -14,6 +14,7 @@
class EPubGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
EPubGenerator( QObject *parent, const QVariantList &args );
~EPubGenerator();
diff --git a/generators/fax/generator_fax.h b/generators/fax/generator_fax.h
index 66d83c8..094eff5 100644
--- a/generators/fax/generator_fax.h
+++ b/generators/fax/generator_fax.h
@@ -19,6 +19,7 @@
class FaxGenerator : public Okular::Generator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
FaxGenerator( QObject *parent, const QVariantList &args );
diff --git a/generators/fictionbook/generator_fb.h b/generators/fictionbook/generator_fb.h
index fc6dc95..5eb4d1b 100644
--- a/generators/fictionbook/generator_fb.h
+++ b/generators/fictionbook/generator_fb.h
@@ -14,6 +14,9 @@
class FictionBookGenerator : public Okular::TextDocumentGenerator
{
+ Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
+
public:
FictionBookGenerator( QObject *parent, const QVariantList &args );
diff --git a/generators/kimgio/generator_kimgio.h b/generators/kimgio/generator_kimgio.h
index feb642c..139c230 100644
--- a/generators/kimgio/generator_kimgio.h
+++ b/generators/kimgio/generator_kimgio.h
@@ -17,6 +17,9 @@
class KIMGIOGenerator : public Okular::Generator
{
+ Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
+
public:
KIMGIOGenerator( QObject *parent, const QVariantList &args );
virtual ~KIMGIOGenerator();
diff --git a/generators/mobipocket/generator_mobi.h b/generators/mobipocket/generator_mobi.h
index 70c3150..84fb954 100644
--- a/generators/mobipocket/generator_mobi.h
+++ b/generators/mobipocket/generator_mobi.h
@@ -12,6 +12,9 @@
class MobiGenerator : public Okular::TextDocumentGenerator
{
+ Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
+
public:
MobiGenerator( QObject *parent, const QVariantList &args );
~MobiGenerator() {}
diff --git a/generators/ooo/generator_ooo.h b/generators/ooo/generator_ooo.h
index 2bfa81c..65836eb 100644
--- a/generators/ooo/generator_ooo.h
+++ b/generators/ooo/generator_ooo.h
@@ -14,6 +14,8 @@
class KOOOGenerator : public Okular::TextDocumentGenerator
{
+ Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
KOOOGenerator( QObject *parent, const QVariantList &args );
diff --git a/generators/plucker/generator_plucker.h b/generators/plucker/generator_plucker.h
index ff96fbb..dbc46eb 100644
--- a/generators/plucker/generator_plucker.h
+++ b/generators/plucker/generator_plucker.h
@@ -22,6 +22,7 @@ class QTextDocument;
class PluckerGenerator : public Okular::Generator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
PluckerGenerator( QObject *parent, const QVariantList &args );
diff --git a/generators/poppler/generator_pdf.h b/generators/poppler/generator_pdf.h
index f3226b2..4b9619f 100644
--- a/generators/poppler/generator_pdf.h
+++ b/generators/poppler/generator_pdf.h
@@ -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 )
diff --git a/generators/spectre/generator_ghostview.h b/generators/spectre/generator_ghostview.h
index 914a518..bd66005 100644
--- a/generators/spectre/generator_ghostview.h
+++ b/generators/spectre/generator_ghostview.h
@@ -18,6 +18,7 @@
class GSGenerator : public Okular::Generator, public Okular::ConfigInterface
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
Q_INTERFACES( Okular::ConfigInterface )
public:
diff --git a/generators/tiff/generator_tiff.h b/generators/tiff/generator_tiff.h
index e2d0d54..827a1b5 100644
--- a/generators/tiff/generator_tiff.h
+++ b/generators/tiff/generator_tiff.h
@@ -18,6 +18,7 @@
class TIFFGenerator : public Okular::Generator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
TIFFGenerator( QObject *parent, const QVariantList &args );
virtual ~TIFFGenerator();
diff --git a/generators/txt/generator_txt.h b/generators/txt/generator_txt.h
index 9a972c0..ace7e9d 100644
--- a/generators/txt/generator_txt.h
+++ b/generators/txt/generator_txt.h
@@ -17,6 +17,7 @@
class TxtGenerator : public Okular::TextDocumentGenerator
{
Q_OBJECT
+ Q_INTERFACES( Okular::Generator )
public:
TxtGenerator(QObject *parent, const QVariantList &args);
diff --git a/generators/xps/generator_xps.h b/generators/xps/generator_xps.h
index af8d337..8980714 100644
--- a/generators/xps/generator_xps.h
+++ b/generators/xps/generator_xps.h
@@ -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();