forked from qt-creator/qt-creator
Share code between "central" and other help viewers.
This removes a lot of duplication of actions and interaction. It's also a preparation step into making the external help window behave more like the full-fledged help mode. Change-Id: I318d831f229b0a75bb8702a5f163c96cce6a668c Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -30,10 +30,11 @@
|
||||
#ifndef LOCALHELPMANAGER_H
|
||||
#define LOCALHELPMANAGER_H
|
||||
|
||||
#include <QMetaType>
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include <QMetaType>
|
||||
#include <QStandardItemModel>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QHelpEngine)
|
||||
|
||||
@@ -70,10 +71,22 @@ public:
|
||||
static QByteArray loadErrorMessage(const QUrl &url, const QString &errorString);
|
||||
Q_INVOKABLE static Help::Internal::LocalHelpManager::HelpData helpData(const QUrl &url);
|
||||
|
||||
static QAbstractItemModel *filterModel();
|
||||
static void setFilterIndex(int index);
|
||||
|
||||
static void updateFilterModel();
|
||||
|
||||
signals:
|
||||
void filterIndexChanged(int index);
|
||||
|
||||
private:
|
||||
bool m_guiNeedsSetup;
|
||||
bool m_needsCollectionFile;
|
||||
|
||||
static QStandardItemModel *m_filterModel;
|
||||
static QString m_currentFilter;
|
||||
static int m_currentFilterIndex;
|
||||
|
||||
static QMutex m_guiMutex;
|
||||
static QHelpEngine *m_guiEngine;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user