diff options
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; }; |