This is the search widget for QAbstractItemView type of widgets. More...
#include <pqItemViewSearchWidget.h>
Inherits QDialog.
Public Types | |
enum | ItemSearchType { Current, Next, Previous } |
Public Slots | |
virtual void | showSearchWidget () |
Public Member Functions | |
pqItemViewSearchWidget (QWidget *parent=nullptr) | |
~pqItemViewSearchWidget () override | |
Protected Slots | |
virtual void | updateSearch (QString) |
Given the user entered text, update the GUI. More... | |
virtual void | updateSearch () |
virtual void | findNext () |
Find the next/previous item. More... | |
virtual void | findPrevious () |
Protected Member Functions | |
virtual void | setBaseWidget (QWidget *baseWidget) |
bool | eventFilter (QObject *obj, QEvent *event) override |
Overridden to capture key presses. More... | |
void | keyPressEvent (QKeyEvent *e) override |
virtual bool | searchModel (const QAbstractItemModel *M, const QModelIndex &Top, const QString &S, ItemSearchType searchType=Current) const |
Recursive to search all QModelIndices in the model. More... | |
void | showEvent (QShowEvent *) override |
Overwrite to focus the lineEdit box. More... | |
virtual bool | matchString (const QAbstractItemModel *M, const QModelIndex &curIdx, const QString &searchString) const |
match the input string with the index's text More... | |
This is the search widget for QAbstractItemView type of widgets.
When Ctrl-F is invoked on the view widget, this widget will show up at the top of the view widget, and it will search through the items as user typing in the text field, and highlight the view item containing the input text
Definition at line 19 of file pqItemViewSearchWidget.h.
Enumerator | |
---|---|
Current | |
Next | |
Previous |
Definition at line 28 of file pqItemViewSearchWidget.h.
pqItemViewSearchWidget::pqItemViewSearchWidget | ( | QWidget * | parent = nullptr | ) |
|
override |
|
virtualslot |
|
protectedvirtualslot |
Given the user entered text, update the GUI.
|
protectedvirtualslot |
|
protectedvirtualslot |
Find the next/previous item.
|
protectedvirtualslot |
|
protectedvirtual |
|
overrideprotected |
Overridden to capture key presses.
|
overrideprotected |
|
protectedvirtual |
Recursive to search all QModelIndices in the model.
|
overrideprotected |
Overwrite to focus the lineEdit box.
|
protectedvirtual |
match the input string with the index's text