Messagelib

findbarsourceview.h
1 /* SPDX-FileCopyrightText: 2011-2021 Laurent Montel <[email protected]>
2  *
3  * SPDX-License-Identifier: LGPL-2.0-or-later
4  */
5 
6 #pragma once
7 
8 #include <WebEngineViewer/FindBarBase>
9 
10 class QPlainTextEdit;
11 
12 namespace MessageViewer
13 {
14 class FindBarSourceView : public WebEngineViewer::FindBarBase
15 {
16  Q_OBJECT
17 
18 public:
19  explicit FindBarSourceView(QPlainTextEdit *view, QWidget *parent = nullptr);
20  ~FindBarSourceView() override;
21 
22 private:
23  explicit FindBarSourceView(QWidget *parent)
24  : mView(nullptr)
25  {
26  Q_UNUSED(parent)
27  }
28 
29  void clearSelections() override;
30  void searchText(bool backward, bool isAutoSearch) override;
31  void updateHighLight(bool) override;
32  void updateSensitivity(bool) override;
33 
34 private:
35  QPlainTextEdit *const mView;
36 };
37 }
38 
Q_OBJECTQ_OBJECT
The FindBarBase class.
Definition: findbarbase.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.