A widget consisting of both an editor widget and additional widgets for controlling the behavior of the editor widget depending on a number of possible modes. For instance, if the parent attribute form is in the multi edit mode, this widget will show both the editor widget and a tool button for controlling the multi edit results.
More...
#include <qgsattributeformeditorwidget.h>
|
Q_DECL_DEPRECATED void | valueChanged (const QVariant &value) |
| Emitted when the widget's value changes. More...
|
|
void | valuesChanged (const QVariant &value, const QVariantList &additionalFieldValues) |
| Emitted when the widget's value changes. More...
|
|
|
| QgsAttributeFormEditorWidget (QgsEditorWidgetWrapper *editorWidget, const QString &widgetType, QgsAttributeForm *form) |
| Constructor for QgsAttributeFormEditorWidget. More...
|
|
| ~QgsAttributeFormEditorWidget () override |
|
void | createSearchWidgetWrappers (const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) override |
| Creates the search widget wrappers for the widget used when the form is in search mode. More...
|
|
QVariant | currentValue () const |
| Returns the current value of the attached editor widget. More...
|
|
QgsEditorWidgetWrapper * | editorWidget () const |
| Returns the editor widget wrapper. More...
|
|
bool | hasChanged () const |
| Returns true if the widget's value has been changed since it was initialized. More...
|
|
void | initialize (const QVariant &initialValue, bool mixedValues=false, const QVariantList &additionalFieldValues=QVariantList()) |
| Resets the widget to an initial value. More...
|
|
void | setConstraintResultVisible (bool editable) |
| Set the constraint result label visible or invisible according to the layer editable status. More...
|
|
void | setConstraintStatus (const QString &constraint, const QString &description, const QString &err, QgsEditorWidgetWrapper::ConstraintResult result) |
| Set the constraint status for this widget. More...
|
|
| QgsAttributeFormWidget (QgsWidgetWrapper *widget, QgsAttributeForm *form) |
| A new form widget for the wrapper widget on form. More...
|
|
void | addAdditionalSearchWidgetWrapper (QgsSearchWidgetWrapper *wrapper) |
| Adds an additional search widget wrapper. More...
|
|
virtual QString | currentFilterExpression () const |
| Creates an expression matching the current search filter value and search properties represented in the widget. More...
|
|
QgsAttributeForm * | form () const |
| The form on which this widget is shown. More...
|
|
QgsVectorLayer * | layer () |
| The layer for which this widget and its form is shown. More...
|
|
Mode | mode () const |
| Returns the current mode for the widget. More...
|
|
void | resetSearch () |
| Resets the search/filter value of the widget. More...
|
|
QWidget * | searchWidgetFrame () |
| Returns the widget which should be used as a parent during construction of the search widget wrapper. More...
|
|
bool | searchWidgetToolButtonVisible () const |
| The visibility of the search widget tool button, that allows (de)activating this search widgte or defines the comparison operator to use. More...
|
|
QList< QgsSearchWidgetWrapper * > | searchWidgetWrappers () |
| Returns the search widget wrapper used in this widget. More...
|
|
void | setMode (Mode mode) |
| Sets the current mode for the widget. More...
|
|
void | setSearchWidgetToolButtonVisible (bool searchWidgetToolButtonVisible) |
| The visibility of the search widget tool button, that allows (de)activating this search widgte or defines the comparison operator to use. More...
|
|
void | setSearchWidgetWrapper (QgsSearchWidgetWrapper *wrapper) |
| Sets the search widget wrapper for the widget used when the form is in search mode. More...
|
|
A widget consisting of both an editor widget and additional widgets for controlling the behavior of the editor widget depending on a number of possible modes. For instance, if the parent attribute form is in the multi edit mode, this widget will show both the editor widget and a tool button for controlling the multi edit results.
- Since
- QGIS 2.16
Definition at line 42 of file qgsattributeformeditorwidget.h.
◆ QgsAttributeFormEditorWidget()
◆ ~QgsAttributeFormEditorWidget()
QgsAttributeFormEditorWidget::~QgsAttributeFormEditorWidget |
( |
| ) |
|
|
override |
◆ changesCommitted
void QgsAttributeFormEditorWidget::changesCommitted |
( |
| ) |
|
|
slot |
◆ createSearchWidgetWrappers()
◆ currentValue()
QVariant QgsAttributeFormEditorWidget::currentValue |
( |
| ) |
const |
◆ editorWidget()
◆ hasChanged()
bool QgsAttributeFormEditorWidget::hasChanged |
( |
| ) |
const |
|
inline |
◆ initialize()
void QgsAttributeFormEditorWidget::initialize |
( |
const QVariant & |
initialValue, |
|
|
bool |
mixedValues = false , |
|
|
const QVariantList & |
additionalFieldValues = QVariantList() |
|
) |
| |
Resets the widget to an initial value.
- Parameters
-
initialValue | initial value to show in widget |
mixedValues | set to true to initially show the mixed values state |
additionalFieldValues | a variant map of additional field names with their corresponding values |
Definition at line 147 of file qgsattributeformeditorwidget.cpp.
◆ setConstraintResultVisible()
void QgsAttributeFormEditorWidget::setConstraintResultVisible |
( |
bool |
editable | ) |
|
◆ setConstraintStatus()
◆ setIsMixed
void QgsAttributeFormEditorWidget::setIsMixed |
( |
bool |
mixed | ) |
|
|
slot |
Sets whether the widget should be displayed in a "mixed values" mode.
- Parameters
-
mixed | set to true to show in a mixed values state |
Definition at line 124 of file qgsattributeformeditorwidget.cpp.
◆ valueChanged
Q_DECL_DEPRECATED void QgsAttributeFormEditorWidget::valueChanged |
( |
const QVariant & |
value | ) |
|
|
signal |
Emitted when the widget's value changes.
- Parameters
-
- Deprecated:
- since QGIS 3.10 use valuesChanged instead
◆ valuesChanged
void QgsAttributeFormEditorWidget::valuesChanged |
( |
const QVariant & |
value, |
|
|
const QVariantList & |
additionalFieldValues |
|
) |
| |
|
signal |
Emitted when the widget's value changes.
- Parameters
-
value | new widget value |
additionalFieldValues | of the potential additional fields |
- Since
- QGIS 3.10
◆ TestQgsAttributeForm
friend class TestQgsAttributeForm |
|
friend |
The documentation for this class was generated from the following files: