File indexing completed on 2025-01-26 04:57:23
0001 /* SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0002 * 0003 * SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #pragma once 0007 0008 #include "findbarbase.h" 0009 #include "webengineviewer_export.h" 0010 0011 class QWebEngineView; 0012 0013 namespace WebEngineViewer 0014 { 0015 class FindBarWebEngineViewPrivate; 0016 /** 0017 * @brief The FindBarWebEngineView class 0018 * @author Laurent Montel <montel@kde.org> 0019 */ 0020 class WEBENGINEVIEWER_EXPORT FindBarWebEngineView : public FindBarBase 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit FindBarWebEngineView(QWebEngineView *view, QWidget *parent = nullptr); 0025 ~FindBarWebEngineView() override; 0026 0027 private: 0028 WEBENGINEVIEWER_NO_EXPORT void clearSelections() override; 0029 WEBENGINEVIEWER_NO_EXPORT void searchText(bool backward, bool isAutoSearch) override; 0030 WEBENGINEVIEWER_NO_EXPORT void updateSensitivity(bool sensitivity) override; 0031 0032 private: 0033 std::unique_ptr<FindBarWebEngineViewPrivate> const d; 0034 }; 0035 }