QGIS API Documentation
3.0.2-Girona (307d082)
|
A highlight widget for buttons. More...
#include <qgsoptionsdialoghighlightwidgetsimpl.h>
Public Member Functions | |
QgsOptionsDialogHighlightButton (QAbstractButton *button) | |
constructs a highlight widget for a button. 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 () |
Return the widget. More... | |
Protected Member Functions | |
virtual bool | highlightText (const QString &text) override |
Highlight the text in the widget. More... | |
virtual void | reset () override |
reset the style of the widgets to its original state More... | |
virtual 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... | |
Protected Attributes | |
QPointer< QAbstractButton > | mButton |
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 QgsOptionsDialogHighlightWidget * | createWidget (QWidget *widget) |
create a highlight widget implementation for the proper widget type. More... | |
A highlight widget for buttons.
This is used to search and highlight text in QgsOptionsDialogBase implementations.
Definition at line 85 of file qgsoptionsdialoghighlightwidgetsimpl.h.
QgsOptionsDialogHighlightButton::QgsOptionsDialogHighlightButton | ( | QAbstractButton * | button | ) |
constructs a highlight widget for a button.
Definition at line 122 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.
|
overrideprotectedvirtual |
Highlight the text in the widget.
Implements QgsOptionsDialogHighlightWidget.
Definition at line 143 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.
|
overrideprotectedvirtual |
reset the style of the widgets to its original state
Implements QgsOptionsDialogHighlightWidget.
Definition at line 152 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.
|
overrideprotectedvirtual |
Search for the text in the widget and return true if it was found.
Implements QgsOptionsDialogHighlightWidget.
Definition at line 134 of file qgsoptionsdialoghighlightwidgetsimpl.cpp.
|
protected |
Definition at line 95 of file qgsoptionsdialoghighlightwidgetsimpl.h.
|
protected |
Definition at line 96 of file qgsoptionsdialoghighlightwidgetsimpl.h.