From b883a096ffa50e0149fc52558d5867142c6d219b Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 26 Jul 2022 11:26:39 +0200 Subject: [PATCH] Help: Some cleanup Change-Id: Ic6af45fda6c7fec57cf6c663a9d8f253e3851f15 Reviewed-by: Qt CI Bot Reviewed-by: Jarek Kobus --- src/plugins/help/filtersettingspage.cpp | 9 +++++---- src/plugins/help/helpindexfilter.cpp | 11 ++++------- src/plugins/help/helpindexfilter.h | 2 +- src/plugins/help/localhelpmanager.h | 6 ++++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/plugins/help/filtersettingspage.cpp b/src/plugins/help/filtersettingspage.cpp index 23dd1e22ec4..41c1e5bbfc2 100644 --- a/src/plugins/help/filtersettingspage.cpp +++ b/src/plugins/help/filtersettingspage.cpp @@ -24,14 +24,15 @@ ****************************************************************************/ #include "filtersettingspage.h" + #include "helpconstants.h" #include "helptr.h" - -#include -#include -#include #include "localhelpmanager.h" +#include +#include +#include + using namespace Help::Internal; FilterSettingsPage::FilterSettingsPage() diff --git a/src/plugins/help/helpindexfilter.cpp b/src/plugins/help/helpindexfilter.cpp index a60a9d3a6d9..69c7d9c06da 100644 --- a/src/plugins/help/helpindexfilter.cpp +++ b/src/plugins/help/helpindexfilter.cpp @@ -25,23 +25,20 @@ #include "helpindexfilter.h" -#include "helpicons.h" #include "helpmanager.h" #include "helptr.h" -#include "topicchooser.h" +#include "localhelpmanager.h" #include #include #include #include +#include +#include +#include #include -#include "localhelpmanager.h" -#include -#include -#include - using namespace Core; using namespace Help; using namespace Help::Internal; diff --git a/src/plugins/help/helpindexfilter.h b/src/plugins/help/helpindexfilter.h index 5c5520ae102..a6c9a6925d2 100644 --- a/src/plugins/help/helpindexfilter.h +++ b/src/plugins/help/helpindexfilter.h @@ -52,7 +52,7 @@ public: QString *newText, int *selectionStart, int *selectionLength) const override; void refresh(QFutureInterface &future) override; - Q_INVOKABLE QStringList allIndices() const; + QStringList allIndices() const; signals: void linksActivated(const QMultiMap &links, const QString &key) const; diff --git a/src/plugins/help/localhelpmanager.h b/src/plugins/help/localhelpmanager.h index 0a895c1559c..2d98411fcd9 100644 --- a/src/plugins/help/localhelpmanager.h +++ b/src/plugins/help/localhelpmanager.h @@ -32,8 +32,10 @@ #include #include -QT_FORWARD_DECLARE_CLASS(QHelpFilterEngine) -QT_FORWARD_DECLARE_CLASS(QHelpEngine) +QT_BEGIN_NAMESPACE +class QHelpFilterEngine; +class QHelpEngine; +QT_END_NAMESPACE class BookmarkManager;