1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QHELPSEARCHRESULTWIDGET_H
5#define QHELPSEARCHRESULTWIDGET_H
6
7#include <QtHelp/qhelpsearchengine.h>
8#include <QtHelp/qhelp_global.h>
9
10#include <QtCore/QUrl>
11#include <QtCore/QPoint>
12#include <QtCore/QObject>
13
14#include <QtWidgets/QWidget>
15
16QT_BEGIN_NAMESPACE
17
18class QHelpSearchResultWidgetPrivate;
19
20class QHELP_EXPORT QHelpSearchResultWidget : public QWidget
21{
22 Q_OBJECT
23
24public:
25 ~QHelpSearchResultWidget() override;
26 QUrl linkAt(const QPoint &point);
27
28Q_SIGNALS:
29 void requestShowLink(const QUrl &url);
30
31private:
32 friend class QHelpSearchEngine;
33
34 QHelpSearchResultWidgetPrivate *d;
35 QHelpSearchResultWidget(QHelpSearchEngine *engine);
36 void changeEvent(QEvent *event) override;
37};
38
39QT_END_NAMESPACE
40
41#endif // QHELPSEARCHRESULTWIDGET_H
42

source code of qttools/src/assistant/help/qhelpsearchresultwidget.h