Add index and filter combo box to external help window

Change-Id: Icc815379220c55d9d7dc5d154278ba21ce2e9984
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2014-10-01 17:52:57 +02:00
committed by Eike Ziller
parent 286dd71a5d
commit 3c59cdd031
16 changed files with 276 additions and 152 deletions

View File

@@ -44,6 +44,11 @@ class QPrinter;
class QStackedWidget;
QT_END_NAMESPACE
namespace Core {
class MiniSplitter;
class SideBar;
}
namespace Help {
namespace Internal {
@@ -74,6 +79,10 @@ public:
int viewerCount() const;
HelpViewer *viewerAt(int index) const;
void open(const QUrl &url, bool newPage = false);
void showTopicChooser(const QMap<QString, QUrl> &links, const QString &key,
bool newPage = false);
public slots:
void setSource(const QUrl &url);
void setSourceFromSearch(const QUrl &url);
@@ -106,9 +115,11 @@ private:
void resetScale();
void print(HelpViewer *viewer);
void highlightSearchTerms();
void addSideBar();
Core::IContext *m_context;
WidgetStyle m_style;
QAction *m_toggleSideBarAction;
QAction *m_switchToHelp;
QAction *m_homeAction;
QMenu *m_backMenu;
@@ -126,6 +137,10 @@ private:
QStackedWidget *m_viewerStack;
QPrinter *m_printer;
Core::MiniSplitter *m_sideBarSplitter;
Core::SideBar *m_sideBar;
QAction *m_indexAction;
};
} // Internal