WebEngineViewer::FindBarBase Class
The FindBarBase class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <WebEngineViewer/FindBarBase> |
| CMake: | find_package(KPim6WebEngineViewer REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::WebEngineViewer) |
| Inherited By: |
Public Functions
| FindBarBase(QWidget *parent = nullptr) | |
| virtual | ~FindBarBase() override |
| void | focusAndSetCursor() |
| void | setText(const QString &text) |
| QString | text() const |
Public Slots
| void | autoSearch(const QString &str) |
| void | closeBar() |
| void | findNext() |
| void | findPrev() |
| void | slotSearchText(bool backward = false, bool isAutoSearch = true) |
Signals
| void | hideFindBar() |
Protected Functions
| virtual void | clearSelections() |
| QMenu * | optionsMenu() const |
| virtual void | searchText(bool backward, bool isAutoSearch) |
| void | setFoundMatch(bool match) |
| virtual void | updateHighLight(bool) |
| virtual void | updateSensitivity(bool) |
Reimplemented Protected Functions
| virtual bool | event(QEvent *e) override |
| virtual bool | eventFilter(QObject *obj, QEvent *event) override |
Protected Slots
| void | caseSensitivityChanged(bool) |
| void | slotClearSearch() |
| void | slotHighlightAllChanged(bool) |
Detailed Description
Member Function Documentation
[explicit] FindBarBase::FindBarBase(QWidget *parent = nullptr)
Constructs a FindBarBase widget with the given parent.
[override virtual noexcept] FindBarBase::~FindBarBase()
Destroys the FindBarBase widget.
[slot] void FindBarBase::autoSearch(const QString &str)
Performs auto search.
[protected slot] void FindBarBase::caseSensitivityChanged(bool)
Handles case sensitivity changes.
[virtual protected] void FindBarBase::clearSelections()
Clears text selections.
[slot] void FindBarBase::closeBar()
Closes the find bar.
[override virtual protected] bool FindBarBase::event(QEvent *e)
Handles events for the widget.
[override virtual protected] bool FindBarBase::eventFilter(QObject *obj, QEvent *event)
Filters events for objects.
[slot] void FindBarBase::findNext()
Finds the next match.
[slot] void FindBarBase::findPrev()
Finds the previous match.
void FindBarBase::focusAndSetCursor()
Focuses the search field and sets cursor.
[signal] void FindBarBase::hideFindBar()
Emitted when the find bar should be hidden.
[protected] QMenu *FindBarBase::optionsMenu() const
Returns the options menu.
[virtual protected] void FindBarBase::searchText(bool backward, bool isAutoSearch)
Searches for text with specified direction and auto-search setting.
[protected] void FindBarBase::setFoundMatch(bool match)
Sets whether a match was found.
void FindBarBase::setText(const QString &text)
Sets the search text.
See also text().
[protected slot] void FindBarBase::slotClearSearch()
Clears the search.
[protected slot] void FindBarBase::slotHighlightAllChanged(bool)
Handles highlight all changes.
[slot] void FindBarBase::slotSearchText(bool backward = false, bool isAutoSearch = true)
Performs text search.
QString FindBarBase::text() const
Returns the search text.
See also setText().
[virtual protected] void FindBarBase::updateHighLight(bool)
Updates highlighting.
[virtual protected] void FindBarBase::updateSensitivity(bool)
Updates the sensitivity of search controls.