A tool button widget which is displayed next to editor widgets in attribute forms, and allows for controlling how the widget behaves and interacts with the form while in multi edit mode.
More...
#include <qgsmultiedittoolbutton.h>
|
void | changesCommitted () |
| Called when field values have been changed and field now contains all the same values.
|
|
void | resetChanges () |
| Resets the changed state for the field.
|
|
void | setIsChanged (bool changed) |
| Sets whether the associated field has changed.
|
|
void | setIsMixed (bool mixed) |
| Sets whether the associated field contains mixed values.
|
|
A tool button widget which is displayed next to editor widgets in attribute forms, and allows for controlling how the widget behaves and interacts with the form while in multi edit mode.
- Since
- QGIS 2.16
Definition at line 32 of file qgsmultiedittoolbutton.h.
◆ State
Button states.
Enumerator |
---|
Default | Default state, all features have same value for widget.
|
MixedValues | Mixed state, some features have different values for the widget.
|
Changed | Value for widget has changed but changes have not yet been committed.
|
Definition at line 39 of file qgsmultiedittoolbutton.h.
◆ QgsMultiEditToolButton()
QgsMultiEditToolButton::QgsMultiEditToolButton |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ changesCommitted
void QgsMultiEditToolButton::changesCommitted |
( |
| ) |
|
|
inlineslot |
◆ resetChanges
void QgsMultiEditToolButton::resetChanges |
( |
| ) |
|
|
inlineslot |
◆ resetFieldValueTriggered
void QgsMultiEditToolButton::resetFieldValueTriggered |
( |
| ) |
|
|
signal |
Emitted when the "reset to original values" option is selected.
◆ setField()
void QgsMultiEditToolButton::setField |
( |
const QgsField & |
field | ) |
|
|
inline |
Sets the field associated with this button.
This is used to customize the widget menu and tooltips to match the field properties.
- Parameters
-
Definition at line 62 of file qgsmultiedittoolbutton.h.
◆ setFieldValueTriggered
void QgsMultiEditToolButton::setFieldValueTriggered |
( |
| ) |
|
|
signal |
Emitted when the "set field value for all features" option is selected.
◆ setIsChanged
void QgsMultiEditToolButton::setIsChanged |
( |
bool |
changed | ) |
|
|
inlineslot |
◆ setIsMixed
void QgsMultiEditToolButton::setIsMixed |
( |
bool |
mixed | ) |
|
|
inlineslot |
◆ state()
State QgsMultiEditToolButton::state |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: