48 #ifndef _MIRA_TREEVIEWFILTER_H_ 49 #define _MIRA_TREEVIEWFILTER_H_ 151 void onFilterTextChanged(
const QString& text);
156 bool applyFilter(
const QString& filter,
const QModelIndex& parent,
158 void startFilterUpdateTimer(
int delay);
162 QTreeView* mTreeView;
167 std::vector<int> mFilterColumns;
173 bool mExpandChildren;
void setAlwaysActive(bool always)
If set to true, the filter will stay active as long as its filter string is not empty, i.e.
Definition: TreeViewFilter.h:98
virtual void timerEvent(QTimerEvent *)
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void setExpandAll(bool expandAll)
If set to true, all (visible) nodes in the tree will be always expanded.
void setFilterColumns(const std::vector< int > &cols)
Specifies the columns that are used for testing if the pattern matches.
void setExpandChildren(bool expand)
If set to true, the children of items matching the entered filter (if visible) will be expanded autom...
void setShowChildren(bool show)
If set to true, the children of items matching the entered filter will be visible, otherwise hidden.
void useFilterRole(bool use=true)
Tell this filter to use the special FilterRole of the tree view items to be used for checking if the ...
void clearFilter()
Clear the filter text.
Provides a QLineEdit widget that has a small button on its right side for clearing the content...
Definition: LineEditClear.h:63
TreeViewFilter(QTreeView *view, QWidget *parent=NULL)
void setAutoHide(bool hide)
Definition: TreeViewFilter.h:62