File: helpbrowser.h

package info (click to toggle)
qt6-tools 6.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 51,016 kB
  • sloc: cpp: 249,113; ansic: 31,401; xml: 10,930; python: 207; javascript: 122; sh: 37; java: 33; makefile: 25
file content (27 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (4)
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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef HELPBROWSER_H
#define HELPBROWSER_H

#include <QtWidgets/QTextBrowser>

QT_BEGIN_NAMESPACE
class QHelpEngineCore;
QT_END_NAMESPACE;

class HelpBrowser : public QTextBrowser
{
    Q_OBJECT

public:
    HelpBrowser(QWidget *parent);
    void showHelpForKeyword(const QString &id);

private:
    QVariant loadResource(int type, const QUrl &name) override;

    QHelpEngineCore *m_helpEngine;
};

#endif