QGIS API Documentation
3.6.0-Noosa (5873452)
|
A widget for customizing conditional formatting options. More...
#include <qgsfieldconditionalformatwidget.h>
Signals | |
void | rulesUpdated (const QString &fieldName) |
Emitted when the conditional styling rules are updated. More... | |
Public Member Functions | |
QgsFieldConditionalFormatWidget (QWidget *parent SIP_TRANSFERTHIS=nullptr) | |
Constructor for QgsFieldConditionalFormatWidget. More... | |
QList< QgsConditionalStyle > | defaultPresets () const |
The default presets for the widget. More... | |
void | editStyle (int index, const QgsConditionalStyle &style) |
Switches the widget to the edit style mode for the specified style. More... | |
void | loadStyle (const QgsConditionalStyle &style) |
void | reset () |
Resets the formatting options to their default state. More... | |
void | setLayer (QgsVectorLayer *layer) |
Sets the vector layer associated with the widget. More... | |
void | setPresets (const QList< QgsConditionalStyle > &styles) |
Set the presets that can be used for quick pick. More... | |
void | viewRules () |
Switches the widget to the rules page. More... | |
A widget for customizing conditional formatting options.
Definition at line 32 of file qgsfieldconditionalformatwidget.h.
|
explicit |
Constructor for QgsFieldConditionalFormatWidget.
Definition at line 25 of file qgsfieldconditionalformatwidget.cpp.
QList< QgsConditionalStyle > QgsFieldConditionalFormatWidget::defaultPresets | ( | ) | const |
The default presets for the widget.
Normally set when the widget is created however called setPresets will override the default styles.
Definition at line 224 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::editStyle | ( | int | index, |
const QgsConditionalStyle & | style | ||
) |
Switches the widget to the edit style mode for the specified style.
index | index of conditional style to edit |
style | initial conditional styling options |
Definition at line 93 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::loadStyle | ( | const QgsConditionalStyle & | style | ) |
style | initial conditional styling options |
Definition at line 102 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::reset | ( | ) |
Resets the formatting options to their default state.
Definition at line 176 of file qgsfieldconditionalformatwidget.cpp.
|
signal |
Emitted when the conditional styling rules are updated.
fieldName | name of field whose rules have been modified. |
void QgsFieldConditionalFormatWidget::setLayer | ( | QgsVectorLayer * | layer | ) |
Sets the vector layer associated with the widget.
layer | vector layer |
Definition at line 79 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::setPresets | ( | const QList< QgsConditionalStyle > & | styles | ) |
Set the presets that can be used for quick pick.
styles | A list of styles used as presets |
Definition at line 201 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::viewRules | ( | ) |
Switches the widget to the rules page.
Definition at line 319 of file qgsfieldconditionalformatwidget.cpp.