Messagelib

webengineaccesskey.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 <memory>
12
14class QWheelEvent;
15class QResizeEvent;
16class QKeyEvent;
17class QWebEngineView;
18namespace WebEngineViewer
19{
20class WebEngineAccessKeyPrivate;
21/**
22 * @brief The WebEngineAccessKey class
23 * @author Laurent Montel <montel@kde.org>
24 */
25class WEBENGINEVIEWER_EXPORT WebEngineAccessKey : public QObject
26{
27 Q_OBJECT
28public:
29 explicit WebEngineAccessKey(QWebEngineView *webEngine, QObject *parent = nullptr);
30 ~WebEngineAccessKey() override;
31
32 void setActionCollection(KActionCollection *ac);
33
34 void wheelEvent(QWheelEvent *e);
35 void resizeEvent(QResizeEvent *);
36 void keyPressEvent(QKeyEvent *e);
37 void keyReleaseEvent(QKeyEvent *e);
38
39 void showAccessKeys();
40 void hideAccessKeys();
41
42Q_SIGNALS:
43 void openUrl(const QUrl &url);
44
45private:
46 WEBENGINEVIEWER_NO_EXPORT void handleSearchAccessKey(const QVariant &res);
47 std::unique_ptr<WebEngineAccessKeyPrivate> const d;
48};
49}
The WebEngineAccessKey class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.