From 9f90e14dd1f0d94b4973dfdf41cbb69555075118 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 3 Jun 2019 08:48:32 +0200 Subject: [PATCH] Fix forward declaration --- conf/dlgperformance.h | 1 - conf/editannottooldialog.h | 1 - conf/widgetannottools.h | 5 ----- core/audioplayer_p.h | 1 - core/document.h | 2 -- core/generator.h | 3 --- core/printoptionswidget.h | 1 - core/scripter.h | 1 - generators/comicbook/document.h | 1 - generators/dvi/simplePageSize.h | 1 - generators/epub/converter.h | 1 - generators/poppler/formfields.h | 1 - generators/poppler/generator_pdf.h | 6 ------ mobile/components/pageitem.h | 1 - part.h | 3 --- shell/shell.h | 1 - ui/layers.h | 1 - ui/pageview.h | 3 --- ui/pageviewutils.h | 2 -- ui/propertiesdialog.h | 1 - ui/signaturepanel.h | 3 --- ui/signaturepropertiesdialog.h | 1 - ui/toc.h | 1 - 23 files changed, 42 deletions(-) diff --git a/conf/dlgperformance.h b/conf/dlgperformance.h index b69d60049..32d0acb99 100644 --- a/conf/dlgperformance.h +++ b/conf/dlgperformance.h @@ -13,7 +13,6 @@ #include class Ui_DlgPerformanceBase; -class QButtonGroup; class DlgPerformance : public QWidget { diff --git a/conf/editannottooldialog.h b/conf/editannottooldialog.h index 46ba39b41..775ee134f 100644 --- a/conf/editannottooldialog.h +++ b/conf/editannottooldialog.h @@ -16,7 +16,6 @@ class KLineEdit; class KComboBox; class QLabel; class QListWidget; -class QListWidgetItem; class QGroupBox; class AnnotationWidget; diff --git a/conf/widgetannottools.h b/conf/widgetannottools.h index 8ac4f706b..3e2f91f37 100644 --- a/conf/widgetannottools.h +++ b/conf/widgetannottools.h @@ -15,11 +15,6 @@ #include #include -namespace Okular -{ -class Annotation; -} - class WidgetAnnotTools : public WidgetConfigurationToolsBase { Q_OBJECT diff --git a/core/audioplayer_p.h b/core/audioplayer_p.h index 1b2ea58f6..1991ca33b 100644 --- a/core/audioplayer_p.h +++ b/core/audioplayer_p.h @@ -15,7 +15,6 @@ #include #include -class QBuffer; class PlayData; class SoundInfo; diff --git a/core/document.h b/core/document.h index ab5470b1a..55e8fa197 100644 --- a/core/document.h +++ b/core/document.h @@ -28,8 +28,6 @@ #include #include -class QPrintDialog; -class KBookmark; class KConfigDialog; class KPluginMetaData; class KXMLGUIClient; diff --git a/core/generator.h b/core/generator.h index de28aba31..a03cd4e78 100644 --- a/core/generator.h +++ b/core/generator.h @@ -39,13 +39,11 @@ class QByteArray; class QMutex; class QPrinter; -class QPrintDialog; class QIcon; namespace Okular { class BackendOpaqueAction; -class DocumentFonts; class DocumentInfo; class DocumentObserver; class DocumentSynopsis; @@ -60,7 +58,6 @@ class TextPage; class TextRequest; class TextRequestPrivate; class NormalizedRect; -class SourceReference; /* Note: on contents generation and asynchronous queries. * Many observers may want to request data synchronously or asynchronously. diff --git a/core/printoptionswidget.h b/core/printoptionswidget.h index d1a0deeb5..471129080 100644 --- a/core/printoptionswidget.h +++ b/core/printoptionswidget.h @@ -15,7 +15,6 @@ #include "okularcore_export.h" class QComboBox; -class QFormLayout; namespace Okular { diff --git a/core/scripter.h b/core/scripter.h index 009c11275..ed7f496bd 100644 --- a/core/scripter.h +++ b/core/scripter.h @@ -13,7 +13,6 @@ #include "global.h" class QString; -class QStringList; namespace Okular { diff --git a/generators/comicbook/document.h b/generators/comicbook/document.h index 6d6ba3269..6983e0bd5 100644 --- a/generators/comicbook/document.h +++ b/generators/comicbook/document.h @@ -15,7 +15,6 @@ class KArchiveDirectory; class KArchive; class QImage; -class QSize; class Unrar; class Directory; diff --git a/generators/dvi/simplePageSize.h b/generators/dvi/simplePageSize.h index 46e368c2c..f272a27b6 100644 --- a/generators/dvi/simplePageSize.h +++ b/generators/dvi/simplePageSize.h @@ -16,7 +16,6 @@ #include class QPaintDevice; -class QString; /** \brief This class represents physical page sizes. diff --git a/generators/epub/converter.h b/generators/epub/converter.h index fb224b4e9..1773c14df 100644 --- a/generators/epub/converter.h +++ b/generators/epub/converter.h @@ -15,7 +15,6 @@ #include "epubdocument.h" -class QTextCursor; namespace Epub { class Converter : public Okular::TextDocumentConverter diff --git a/generators/poppler/formfields.h b/generators/poppler/formfields.h index 9fb7537ae..5dbe7a8fc 100644 --- a/generators/poppler/formfields.h +++ b/generators/poppler/formfields.h @@ -111,7 +111,6 @@ class PopplerFormFieldChoice : public Okular::FormFieldChoice }; -class PopplerSignatureInfo; class PopplerFormFieldSignature : public Okular::FormFieldSignature { public: diff --git a/generators/poppler/generator_pdf.h b/generators/poppler/generator_pdf.h index cc679d108..9c99a3e2f 100644 --- a/generators/poppler/generator_pdf.h +++ b/generators/poppler/generator_pdf.h @@ -29,12 +29,6 @@ #include #include -namespace Okular { -class ObjectRect; -class SourceReference; -class SignatureInfo; -} - class PDFOptionsPage; class PopplerAnnotationProxy; diff --git a/mobile/components/pageitem.h b/mobile/components/pageitem.h index 084123664..e0d63ec2a 100644 --- a/mobile/components/pageitem.h +++ b/mobile/components/pageitem.h @@ -28,7 +28,6 @@ #include class QTimer; -class QSGTexture; class DocumentItem; diff --git a/part.h b/part.h index 3cfc5a31d..3958b28ac 100644 --- a/part.h +++ b/part.h @@ -47,12 +47,9 @@ class QPrinter; class QMenu; class KConfigDialog; -class KConfigGroup; class KDirWatch; class KToggleAction; class KToggleFullScreenAction; -class KSelectAction; -class KAboutData; class QTemporaryFile; class QAction; class QJsonObject; diff --git a/shell/shell.h b/shell/shell.h index 1f16cb2fb..0a0da8589 100644 --- a/shell/shell.h +++ b/shell/shell.h @@ -29,7 +29,6 @@ class KToggleAction; class QTabWidget; class KPluginFactory; -class KDocumentViewer; class Part; #ifndef Q_OS_WIN diff --git a/ui/layers.h b/ui/layers.h index 2593902aa..b2f1a10e2 100644 --- a/ui/layers.h +++ b/ui/layers.h @@ -16,7 +16,6 @@ #include "okularpart_export.h" class PageView; -class QModelIndex; class QTreeView; class KTreeViewSearchLine; diff --git a/ui/pageview.h b/ui/pageview.h index a892a5bb0..1e06e1a08 100644 --- a/ui/pageview.h +++ b/ui/pageview.h @@ -40,13 +40,10 @@ class FormFieldSignature; class Annotation; class MovieAction; class RenditionAction; -class PixmapRequest; } -class FormWidgetIface; class PageViewPrivate; -class MagnifierView; class QGestureEvent; diff --git a/ui/pageviewutils.h b/ui/pageviewutils.h index 0bb462f45..1a4b4fdd3 100644 --- a/ui/pageviewutils.h +++ b/ui/pageviewutils.h @@ -22,8 +22,6 @@ #include "core/area.h" -class QAction; -class QLabel; class QTimer; class FormWidgetIface; class PageView; diff --git a/ui/propertiesdialog.h b/ui/propertiesdialog.h index 5abe394c3..e9bfa76e5 100644 --- a/ui/propertiesdialog.h +++ b/ui/propertiesdialog.h @@ -20,7 +20,6 @@ class QLabel; class QProgressBar; class FontsListModel; -class KSqueezedTextLabel; namespace Okular { class Document; diff --git a/ui/signaturepanel.h b/ui/signaturepanel.h index c00ed155c..9e3a87f00 100644 --- a/ui/signaturepanel.h +++ b/ui/signaturepanel.h @@ -17,11 +17,8 @@ namespace Okular { class Document; -class FormFieldSignature; } -class QTreeView; -class SignatureModel; class PageView; class SignaturePanelPrivate; diff --git a/ui/signaturepropertiesdialog.h b/ui/signaturepropertiesdialog.h index fd8e91f0a..12da3a748 100644 --- a/ui/signaturepropertiesdialog.h +++ b/ui/signaturepropertiesdialog.h @@ -17,7 +17,6 @@ namespace Okular { class Document; class FormFieldSignature; - class SignatureInfo; } class SignaturePropertiesDialog : public QDialog diff --git a/ui/toc.h b/ui/toc.h index 75c4710ad..3c70f1cfb 100644 --- a/ui/toc.h +++ b/ui/toc.h @@ -17,7 +17,6 @@ #include "okularpart_export.h" -class QDomNode; class QModelIndex; class QTreeView; class KTreeViewSearchLine;