Messagelib

webhittest.h
1 /*
2  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "webengineviewer_export.h"
10 #include <QObject>
11 #include <QPoint>
12 #include <memory>
13 class QWebEnginePage;
14 namespace WebEngineViewer
15 {
16 class WebHitTestResult;
17 class WebHitTestPrivate;
18 /**
19  * @brief The WebHitTest class
20  * @author Laurent Montel <[email protected]>
21  */
22 class WEBENGINEVIEWER_EXPORT WebHitTest : public QObject
23 {
24  Q_OBJECT
25 public:
26  explicit WebHitTest(QWebEnginePage *page, const QPoint &zoomedPos, const QPoint &pos, QObject *parent = nullptr);
27  ~WebHitTest() override;
28 
29 Q_SIGNALS:
30  void finished(const WebEngineViewer::WebHitTestResult &result);
31 
32 private Q_SLOTS:
33  void handleHitTest(const QVariant &result);
34 
35 private:
36  std::unique_ptr<WebHitTestPrivate> const d;
37 };
38 }
39 
The WebHitTest class.
Definition: webhittest.h:22
The WebHitTestResult class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.