5 #ifndef pqItemViewSearchWidget_h
6 #define pqItemViewSearchWidget_h
8 #include "pqComponentsModule.h"
10 #include <QModelIndex>
23 typedef QDialog Superclass;
36 virtual void showSearchWidget();
43 virtual void updateSearch(QString);
44 virtual void updateSearch();
48 virtual void findNext();
49 virtual void findPrevious();
52 virtual void setBaseWidget(QWidget* baseWidget);
56 bool eventFilter(QObject* obj, QEvent* event)
override;
57 void keyPressEvent(QKeyEvent* e)
override;
61 virtual bool searchModel(
const QAbstractItemModel* M,
const QModelIndex& Top,
const QString& S,
62 ItemSearchType searchType = Current)
const;
66 void showEvent(QShowEvent*)
override;
70 virtual bool matchString(
71 const QAbstractItemModel* M,
const QModelIndex& curIdx,
const QString& searchString)
const;