From 227acdea75a0f63e82da95dbdac2e984659a6202 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 25 Sep 2017 15:03:13 +0200 Subject: [PATCH] TextEditor: Clean forward declaration Change-Id: If338617551893e3ce3c7a68ff1abfc60de8cf610 Reviewed-by: Eike Ziller --- src/plugins/texteditor/basefilefind.h | 6 ------ src/plugins/texteditor/codeassist/assistproposalitem.h | 1 - .../texteditor/codeassist/assistproposaliteminterface.h | 2 -- src/plugins/texteditor/codeassist/codeassistant.h | 1 - src/plugins/texteditor/codeassist/iassistprocessor.h | 1 - src/plugins/texteditor/codeassist/iassistproposalmodel.h | 1 - src/plugins/texteditor/codestyleselectorwidget.h | 8 -------- src/plugins/texteditor/findinfiles.h | 2 +- src/plugins/texteditor/generichighlighter/manager.h | 1 - src/plugins/texteditor/icodestylepreferencesfactory.h | 1 - src/plugins/texteditor/semantichighlighter.h | 4 ---- src/plugins/texteditor/texteditor.h | 2 -- src/plugins/texteditor/texteditor_p.h | 2 -- src/plugins/texteditor/texteditorsettings.h | 1 - src/plugins/texteditor/textmark.h | 1 - 15 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h index 56bbb4e5fd2..d921b4f2f05 100644 --- a/src/plugins/texteditor/basefilefind.h +++ b/src/plugins/texteditor/basefilefind.h @@ -33,15 +33,9 @@ #include -QT_BEGIN_NAMESPACE -class QLabel; -class QComboBox; -QT_END_NAMESPACE - namespace Utils { class FileIterator; } namespace Core { class IEditor; -class IFindSupport; class SearchResult; class SearchResultItem; } // namespace Core diff --git a/src/plugins/texteditor/codeassist/assistproposalitem.h b/src/plugins/texteditor/codeassist/assistproposalitem.h index 8d957a2f812..286eef67dc4 100644 --- a/src/plugins/texteditor/codeassist/assistproposalitem.h +++ b/src/plugins/texteditor/codeassist/assistproposalitem.h @@ -35,7 +35,6 @@ namespace TextEditor { -class TextEditorWidget; class TEXTEDITOR_EXPORT AssistProposalItem : public AssistProposalItemInterface { diff --git a/src/plugins/texteditor/codeassist/assistproposaliteminterface.h b/src/plugins/texteditor/codeassist/assistproposaliteminterface.h index 69bc1d91e38..a4f925f4d90 100644 --- a/src/plugins/texteditor/codeassist/assistproposaliteminterface.h +++ b/src/plugins/texteditor/codeassist/assistproposaliteminterface.h @@ -32,14 +32,12 @@ QT_BEGIN_NAMESPACE class QIcon; class QString; -class QVariant; QT_END_NAMESPACE #include namespace TextEditor { -class TextEditorWidget; class TEXTEDITOR_EXPORT AssistProposalItemInterface { diff --git a/src/plugins/texteditor/codeassist/codeassistant.h b/src/plugins/texteditor/codeassist/codeassistant.h index 64e507f49b8..46ffa9a85c4 100644 --- a/src/plugins/texteditor/codeassist/codeassistant.h +++ b/src/plugins/texteditor/codeassist/codeassistant.h @@ -34,7 +34,6 @@ namespace TextEditor { class CodeAssistantPrivate; -class CompletionSettings; class IAssistProvider; class TextEditorWidget; diff --git a/src/plugins/texteditor/codeassist/iassistprocessor.h b/src/plugins/texteditor/codeassist/iassistprocessor.h index d2c618ac4b2..a05c0bf8261 100644 --- a/src/plugins/texteditor/codeassist/iassistprocessor.h +++ b/src/plugins/texteditor/codeassist/iassistprocessor.h @@ -31,7 +31,6 @@ namespace TextEditor { -class IAssistProvider; class AssistInterface; class IAssistProposal; diff --git a/src/plugins/texteditor/codeassist/iassistproposalmodel.h b/src/plugins/texteditor/codeassist/iassistproposalmodel.h index 75196363934..fdb6289ce1e 100644 --- a/src/plugins/texteditor/codeassist/iassistproposalmodel.h +++ b/src/plugins/texteditor/codeassist/iassistproposalmodel.h @@ -31,7 +31,6 @@ QT_FORWARD_DECLARE_CLASS(QString) namespace TextEditor { -class AssistProposalItem; class TEXTEDITOR_EXPORT IAssistProposalModel { diff --git a/src/plugins/texteditor/codestyleselectorwidget.h b/src/plugins/texteditor/codestyleselectorwidget.h index 05ae0c41d8a..f498ecacd7f 100644 --- a/src/plugins/texteditor/codestyleselectorwidget.h +++ b/src/plugins/texteditor/codestyleselectorwidget.h @@ -29,14 +29,6 @@ #include -QT_BEGIN_NAMESPACE -class QHBoxLayout; -class QComboBox; -class QLabel; -class QCheckBox; -class QPushButton; -QT_END_NAMESPACE - namespace TextEditor { namespace Internal { namespace Ui { class CodeStyleSelectorWidget; } } diff --git a/src/plugins/texteditor/findinfiles.h b/src/plugins/texteditor/findinfiles.h index ab8d93bad78..f5df340ebd1 100644 --- a/src/plugins/texteditor/findinfiles.h +++ b/src/plugins/texteditor/findinfiles.h @@ -33,7 +33,7 @@ #include QT_BEGIN_NAMESPACE -class QLabel; +class QComboBox; class QStackedWidget; QT_END_NAMESPACE diff --git a/src/plugins/texteditor/generichighlighter/manager.h b/src/plugins/texteditor/generichighlighter/manager.h index 5b602d2e039..080e649e3ad 100644 --- a/src/plugins/texteditor/generichighlighter/manager.h +++ b/src/plugins/texteditor/generichighlighter/manager.h @@ -38,7 +38,6 @@ QT_BEGIN_NAMESPACE class QFileInfo; -class QStringList; class QIODevice; template class QFutureInterface; QT_END_NAMESPACE diff --git a/src/plugins/texteditor/icodestylepreferencesfactory.h b/src/plugins/texteditor/icodestylepreferencesfactory.h index 0e9b1b8d8f6..f9d534376fb 100644 --- a/src/plugins/texteditor/icodestylepreferencesfactory.h +++ b/src/plugins/texteditor/icodestylepreferencesfactory.h @@ -33,7 +33,6 @@ namespace Core { class Id; } namespace TextEditor { class ICodeStylePreferences; -class CodeStylePool; class Indenter; class SnippetProvider; diff --git a/src/plugins/texteditor/semantichighlighter.h b/src/plugins/texteditor/semantichighlighter.h index 1ffc03d76a1..f57b037957c 100644 --- a/src/plugins/texteditor/semantichighlighter.h +++ b/src/plugins/texteditor/semantichighlighter.h @@ -33,10 +33,6 @@ #include #include -QT_BEGIN_NAMESPACE -class QTextDocument; -QT_END_NAMESPACE - namespace TextEditor { class SyntaxHighlighter; diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h index b5365ad3279..b2f3d0a9fac 100644 --- a/src/plugins/texteditor/texteditor.h +++ b/src/plugins/texteditor/texteditor.h @@ -52,11 +52,9 @@ QT_END_NAMESPACE namespace TextEditor { class TextDocument; class BaseHoverHandler; -class TabSettings; class RefactorOverlay; struct RefactorMarker; class SyntaxHighlighter; -class IAssistMonitorInterface; class AssistInterface; class IAssistProvider; class ICodeStylePreferences; diff --git a/src/plugins/texteditor/texteditor_p.h b/src/plugins/texteditor/texteditor_p.h index ec2ad4ab7f8..09a9cf2a125 100644 --- a/src/plugins/texteditor/texteditor_p.h +++ b/src/plugins/texteditor/texteditor_p.h @@ -35,8 +35,6 @@ namespace TextEditor { class TextDocument; namespace Internal { -class TextEditorOverlay; -class ClipboardAssistProvider; class TEXTEDITOR_EXPORT TextBlockSelection { diff --git a/src/plugins/texteditor/texteditorsettings.h b/src/plugins/texteditor/texteditorsettings.h index 2c0ce20fabc..656d5856843 100644 --- a/src/plugins/texteditor/texteditorsettings.h +++ b/src/plugins/texteditor/texteditorsettings.h @@ -39,7 +39,6 @@ QT_END_NAMESPACE namespace TextEditor { class FontSettings; -class TabSettings; class TypingSettings; class StorageSettings; class BehaviorSettings; diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index f8cd36b1317..d9c09ee5133 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -42,7 +42,6 @@ QT_END_NAMESPACE namespace TextEditor { -class BaseTextEditor; class TextDocument; class TEXTEDITOR_EXPORT TextMark