QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
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=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 33 of file qgsfieldconditionalformatwidget.h.
|
explicit |
Constructor for QgsFieldConditionalFormatWidget.
parent | parent widget |
Definition at line 24 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 223 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 92 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::loadStyle | ( | const QgsConditionalStyle & | style | ) |
style | initial conditional styling options |
Definition at line 101 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::reset | ( | ) |
Resets the formatting options to their default state.
Definition at line 175 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 78 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 200 of file qgsfieldconditionalformatwidget.cpp.
void QgsFieldConditionalFormatWidget::viewRules | ( | ) |
Switches the widget to the rules page.
Definition at line 318 of file qgsfieldconditionalformatwidget.cpp.