blob: eb4be1a5c46df51daccc8f73181387092fc35d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QUrl>
#include <QModelIndex>
#include <QWidget>
QT_BEGIN_NAMESPACE
class QHelpContentItem;
class QHelpContentModel;
QT_END_NAMESPACE
namespace Utils {
class NavigationTreeView;
}
class ContentWindow : public QWidget
{
Q_OBJECT
public:
ContentWindow();
~ContentWindow();
void setOpenInNewPageActionVisible(bool visible);
signals:
void linkActivated(const QUrl &link, bool newPage);
private:
void showContextMenu(const QPoint &pos);
void expandTOC();
void itemActivated(const QModelIndex &index);
void expandToDepth(int depth);
bool eventFilter(QObject *o, QEvent *e) override;
Utils::NavigationTreeView *m_contentWidget;
QHelpContentModel *m_contentModel;
int m_expandDepth;
bool m_isOpenInNewPageActionVisible;
};
|