QgsOptionsDialogHighlightTree class
A highlight widget for trees.
Contents
This is used to search and highlight text in QgsOptionsDialogBase implementations. Highlighting is only available for tree widgets only while searching can be performed in any tree view or inherited class.
Base classes
- class QgsOptionsDialogHighlightWidget
- Container for a widget to be used to search text in the option dialog If the widget type is handled, it is valid.
Constructors, destructors, conversion operators
- QgsOptionsDialogHighlightTree(QTreeView* treeView)
- constructs a highlight widget for a tree view or widget.
Protected functions
- auto highlightText(const QString& text) -> bool override
- Highlight the text in the widget.
- void reset() override
- reset the style of the widgets to its original state
- auto searchText(const QString& text) -> bool override
- Search for the text in the widget and return true if it was found.
Function documentation
bool QgsOptionsDialogHighlightTree:: highlightText(const QString& text) override protected
Highlight the text in the widget.
| Returns | true if the text could be highlighted. |
|---|