Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
texteditfindwidget_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5//
6// W A R N I N G
7// -------------
8//
9// This file is not part of the Qt API. It exists for the convenience
10// of Qt Designer. This header file may change from version to version
11// without notice, or even be removed.
12//
13// We mean it.
14//
15
16#ifndef TEXTEDITFINDWIDGET_H
17#define TEXTEDITFINDWIDGET_H
18
20
21QT_BEGIN_NAMESPACE
22
23class QTextEdit;
24
26{
28
29public:
30 explicit TextEditFindWidget(FindFlags flags = FindFlags(), QWidget *parent = nullptr);
31
33 { return m_textEdit; }
34
35 void setTextEdit(QTextEdit *textEdit);
36
37protected:
38 void deactivate() override;
39 void find(const QString &textToFind, bool skipCurrent,
40 bool backward, bool *found, bool *wrapped) override;
41
42private:
43 QTextEdit *m_textEdit;
44};
45
46QT_END_NAMESPACE
47
48#endif // TEXTEDITFINDWIDGET_H
A search bar that is commonly added below a searchable widget.
A search bar that is commonly added below the searchable text.
void setTextEdit(QTextEdit *textEdit)
Associates a QTextEdit with this find widget.
void find(const QString &textToFind, bool skipCurrent, bool backward, bool *found, bool *wrapped) override
\reimp
QTextEdit * textEdit() const
void deactivate() override
\reimp
Combined button and popup list for selecting options.