diff options
author | Eike Ziller <[email protected]> | 2014-10-10 10:05:59 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2014-10-13 11:23:29 +0200 |
commit | 2735ff4068f0a72233b2a837d4bed0ec726b5371 (patch) | |
tree | 69a25033171da9c2d5c973477c42f744cbc3e1c5 /src/shared/help/contentwindow.h | |
parent | 5cf2972345171892aca33c6ad784b9a92aa99936 (diff) |
Help: Make it possible to create multiple content views
Change-Id: I77ccbd1b48e9611f263716a248a6193dcbad8823
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/shared/help/contentwindow.h')
-rw-r--r-- | src/shared/help/contentwindow.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/shared/help/contentwindow.h b/src/shared/help/contentwindow.h index 659dfc26346..ee054157293 100644 --- a/src/shared/help/contentwindow.h +++ b/src/shared/help/contentwindow.h @@ -37,10 +37,14 @@ QT_BEGIN_NAMESPACE class QHelpContentItem; -class QHelpContentWidget; +class QHelpContentModel; QT_END_NAMESPACE +namespace Utils { +class NavigationTreeView; +} + class ContentWindow : public QWidget { Q_OBJECT @@ -49,21 +53,18 @@ public: ContentWindow(); ~ContentWindow(); - bool syncToContent(const QUrl &url); - void expandToDepth(int depth); - signals: - void linkActivated(const QUrl &link); + void linkActivated(const QUrl &link, bool newPage); -private slots: +private: void showContextMenu(const QPoint &pos); void expandTOC(); - void itemClicked(const QModelIndex &index); - -private: + void itemActivated(const QModelIndex &index); + void expandToDepth(int depth); bool eventFilter(QObject *o, QEvent *e); - QHelpContentWidget *m_contentWidget; + Utils::NavigationTreeView *m_contentWidget; + QHelpContentModel *m_contentModel; int m_expandDepth; }; |