QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsOptionsDialogHighlightTable Class Reference

A highlight widget for table widgets. More...

#include <qgsoptionsdialoghighlightwidgetsimpl.h>

Inheritance diagram for QgsOptionsDialogHighlightTable:
Inheritance graph
[legend]

Public Member Functions

 QgsOptionsDialogHighlightTable (QTableView *tableView)
 constructs a highlight widget for a table view or widget.
 
- Public Member Functions inherited from QgsOptionsDialogHighlightWidget
virtual ~QgsOptionsDialogHighlightWidget ()=default
 
bool isValid ()
 Returns if it valid: if the widget type is handled and if the widget is not still available.
 
bool searchHighlight (const QString &text)
 search for a text pattern and highlight the widget if the text is found
 
QWidget * widget ()
 Returns the widget.
 

Protected Member Functions

bool highlightText (const QString &text) override
 Highlight the text in the widget.
 
void reset () override
 reset the style of the widgets to its original state
 
bool searchText (const QString &text) override
 Search for the text in the widget and return true if it was found.
 
- Protected Member Functions inherited from QgsOptionsDialogHighlightWidget
 QgsOptionsDialogHighlightWidget (QWidget *widget=nullptr)
 Constructor.
 

Protected Attributes

QPointer< QTableView > mTableView
 
- Protected Attributes inherited from QgsOptionsDialogHighlightWidget
QPointer< QWidget > mWidget
 Pointer to the widget.
 

Additional Inherited Members

- Static Public Member Functions inherited from QgsOptionsDialogHighlightWidget
static QgsOptionsDialogHighlightWidgetcreateWidget (QWidget *widget)
 create a highlight widget implementation for the proper widget type.
 

Detailed Description

A highlight widget for table widgets.

This is used to search and highlight text in QgsOptionsDialogBase implementations.

Since
QGIS 3.22

Definition at line 143 of file qgsoptionsdialoghighlightwidgetsimpl.h.

Constructor & Destructor Documentation

◆ QgsOptionsDialogHighlightTable()

QgsOptionsDialogHighlightTable::QgsOptionsDialogHighlightTable ( QTableView *  tableView)

constructs a highlight widget for a table view or widget.

Definition at line 302 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

Member Function Documentation

◆ highlightText()

bool QgsOptionsDialogHighlightTable::highlightText ( const QString &  text)
overrideprotectedvirtual

Highlight the text in the widget.

Returns
true if the text could be highlighted.

Implements QgsOptionsDialogHighlightWidget.

Definition at line 325 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

◆ reset()

void QgsOptionsDialogHighlightTable::reset ( )
overrideprotectedvirtual

reset the style of the widgets to its original state

Implements QgsOptionsDialogHighlightWidget.

Definition at line 330 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

◆ searchText()

bool QgsOptionsDialogHighlightTable::searchText ( const QString &  text)
overrideprotectedvirtual

Search for the text in the widget and return true if it was found.

Implements QgsOptionsDialogHighlightWidget.

Definition at line 308 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

Member Data Documentation

◆ mTableView

QPointer<QTableView> QgsOptionsDialogHighlightTable::mTableView
protected

Definition at line 152 of file qgsoptionsdialoghighlightwidgetsimpl.h.


The documentation for this class was generated from the following files: