Messagelib

webhittest.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
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>
13class QWebEnginePage;
14namespace WebEngineViewer
15{
16class WebHitTestResult;
17class WebHitTestPrivate;
18/**
19 * @brief The WebHitTest class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class WEBENGINEVIEWER_EXPORT WebHitTest : public QObject
23{
24 Q_OBJECT
25public:
26 explicit WebHitTest(QWebEnginePage *page, const QPoint &zoomedPos, const QPoint &pos, QObject *parent = nullptr);
27 ~WebHitTest() override;
28
29Q_SIGNALS:
30 void finished(const WebEngineViewer::WebHitTestResult &result);
31
32private Q_SLOTS:
33 WEBENGINEVIEWER_NO_EXPORT void handleHitTest(const QVariant &result);
34
35private:
36 std::unique_ptr<WebHitTestPrivate> const d;
37};
38}
The WebHitTestResult class.
The WebHitTest class.
Definition webhittest.h:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:37:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.