QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsOptionsDialogHighlightCheckBox Class Reference

A highlight widget for checkboxes. More...

#include <qgsoptionsdialoghighlightwidgetsimpl.h>

Inheritance diagram for QgsOptionsDialogHighlightCheckBox:
Inheritance graph
[legend]

Public Member Functions

 QgsOptionsDialogHighlightCheckBox (QCheckBox *checkBox)
 constructs a highlight widget for a checkbox More...
 
- Public Member Functions inherited from QgsOptionsDialogHighlightWidget
bool eventFilter (QObject *obj, QEvent *event) override
 
bool isValid ()
 Returns if it valid: if the widget type is handled and if the widget is not still available. More...
 
bool searchHighlight (const QString &text)
 search for a text pattern and highlight the widget if the text is found More...
 
QWidget * widget ()
 Returns the widget. More...
 

Protected Member Functions

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

Protected Attributes

QPointer< QCheckBox > mCheckBox
 
QString mStyleSheet
 
- Protected Attributes inherited from QgsOptionsDialogHighlightWidget
QPointer< QWidget > mWidget
 Pointer to the widget. More...
 

Additional Inherited Members

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

Detailed Description

A highlight widget for checkboxes.

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

Since
QGIS 3.0

Definition at line 65 of file qgsoptionsdialoghighlightwidgetsimpl.h.

Constructor & Destructor Documentation

◆ QgsOptionsDialogHighlightCheckBox()

QgsOptionsDialogHighlightCheckBox::QgsOptionsDialogHighlightCheckBox ( QCheckBox *  checkBox)

constructs a highlight widget for a checkbox

Definition at line 85 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

Member Function Documentation

◆ highlightText()

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

Highlight the text in the widget.

Returns
true if the text could be highlighted.

Implements QgsOptionsDialogHighlightWidget.

Definition at line 106 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

◆ reset()

void QgsOptionsDialogHighlightCheckBox::reset ( )
overrideprotectedvirtual

reset the style of the widgets to its original state

Implements QgsOptionsDialogHighlightWidget.

Definition at line 115 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

◆ searchText()

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

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

Implements QgsOptionsDialogHighlightWidget.

Definition at line 97 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.

Member Data Documentation

◆ mCheckBox

QPointer<QCheckBox> QgsOptionsDialogHighlightCheckBox::mCheckBox
protected

Definition at line 75 of file qgsoptionsdialoghighlightwidgetsimpl.h.

◆ mStyleSheet

QString QgsOptionsDialogHighlightCheckBox::mStyleSheet
protected

Definition at line 76 of file qgsoptionsdialoghighlightwidgetsimpl.h.


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