diff options
Diffstat (limited to 'src/plugins/help/localhelpmanager.h')
-rw-r--r-- | src/plugins/help/localhelpmanager.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/help/localhelpmanager.h b/src/plugins/help/localhelpmanager.h index c2f5284f59..aac3a46871 100644 --- a/src/plugins/help/localhelpmanager.h +++ b/src/plugins/help/localhelpmanager.h @@ -31,9 +31,12 @@ #include <QMutex> #include <QObject> #include <QUrl> +#ifndef HELP_NEW_FILTER_ENGINE #include <QStandardItemModel> - #include <functional> +#else +QT_FORWARD_DECLARE_CLASS(QHelpFilterEngine) +#endif QT_FORWARD_DECLARE_CLASS(QHelpEngine) @@ -116,17 +119,23 @@ public: static QByteArray loadErrorMessage(const QUrl &url, const QString &errorString); Q_INVOKABLE static Help::Internal::LocalHelpManager::HelpData helpData(const QUrl &url); +#ifndef HELP_NEW_FILTER_ENGINE static QAbstractItemModel *filterModel(); static void setFilterIndex(int index); static int filterIndex(); static void updateFilterModel(); +#else + static QHelpFilterEngine *filterEngine(); +#endif static bool canOpenOnlineHelp(const QUrl &url); static bool openOnlineHelp(const QUrl &url); signals: +#ifndef HELP_NEW_FILTER_ENGINE void filterIndexChanged(int index); +#endif void fallbackFontChanged(const QFont &font); void returnOnCloseChanged(); void scrollWheelZoomingEnabledChanged(bool enabled); @@ -136,9 +145,11 @@ private: static bool m_guiNeedsSetup; static bool m_needsCollectionFile; +#ifndef HELP_NEW_FILTER_ENGINE static QStandardItemModel *m_filterModel; static QString m_currentFilter; static int m_currentFilterIndex; +#endif static QMutex m_guiMutex; static QHelpEngine *m_guiEngine; |