QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsmultiedittoolbutton.h>
Public Types | |
enum | State { Default, MixedValues, Changed } |
Button states. More... | |
Public Slots | |
void | changesCommitted () |
Called when field values have been changed and field now contains all the same values. More... | |
void | resetChanges () |
Resets the changed state for the field. More... | |
void | setIsChanged (bool changed) |
Sets whether the associated field has changed. More... | |
void | setIsMixed (bool mixed) |
Sets whether the associated field contains mixed values. More... | |
Signals | |
void | resetFieldValueTriggered () |
Emitted when the "reset to original values" option is selected. More... | |
void | setFieldValueTriggered () |
Emitted when the "set field value for all features" option is selected. More... | |
Public Member Functions | |
QgsMultiEditToolButton (QWidget *parent=nullptr) | |
Constructor for QgsMultiEditToolButton. More... | |
void | setField (const QgsField &field) |
Sets the field associated with this button. More... | |
State | state () const |
Returns the current displayed state of the button. More... | |
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.
Definition at line 32 of file qgsmultiedittoolbutton.h.
Button states.
Definition at line 39 of file qgsmultiedittoolbutton.h.
|
explicit |
Constructor for QgsMultiEditToolButton.
parent | parent object |
Definition at line 21 of file qgsmultiedittoolbutton.cpp.
|
inlineslot |
Called when field values have been changed and field now contains all the same values.
Definition at line 94 of file qgsmultiedittoolbutton.h.
|
inlineslot |
Resets the changed state for the field.
Definition at line 88 of file qgsmultiedittoolbutton.h.
|
signal |
Emitted when the "reset to original values" option is selected.
|
inline |
Sets the field associated with this button.
This is used to customize the widget menu and tooltips to match the field properties.
field | associated field |
Definition at line 62 of file qgsmultiedittoolbutton.h.
|
signal |
Emitted when the "set field value for all features" option is selected.
|
inlineslot |
Sets whether the associated field has changed.
changed | whether field has changed |
Definition at line 80 of file qgsmultiedittoolbutton.h.
|
inlineslot |
Sets whether the associated field contains mixed values.
mixed | whether field values are mixed |
Definition at line 72 of file qgsmultiedittoolbutton.h.
|
inline |
Returns the current displayed state of the button.
Definition at line 55 of file qgsmultiedittoolbutton.h.