QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Widget to show for child relations on an attribute form. More...
#include <qgsattributeformrelationeditorwidget.h>
Public Member Functions | |
QgsAttributeFormRelationEditorWidget (QgsRelationWidgetWrapper *wrapper, QgsAttributeForm *form) | |
Constructor. More... | |
void | createSearchWidgetWrappers (const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) override |
Creates the search widget wrappers for the widget used when the form is in search mode. More... | |
QString | currentFilterExpression () const override |
Creates an expression matching the current search filter value and search properties represented in the widget. More... | |
Public Member Functions inherited from QgsAttributeFormWidget | |
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... | |
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... | |
Additional Inherited Members | |
Public Types inherited from QgsAttributeFormWidget | |
enum | Mode { DefaultMode, MultiEditMode, SearchMode, AggregateSearchMode } |
Widget modes. More... | |
Protected Member Functions inherited from QgsAttributeFormWidget | |
QWidget * | editPage () const |
Returns a pointer to the EDIT page widget. More... | |
QWidget * | searchPage () const |
Returns a pointer to the search page widget. More... | |
QStackedWidget * | stack () const |
Returns a pointer to the stacked widget managing edit and search page. More... | |
Widget to show for child relations on an attribute form.
Definition at line 33 of file qgsattributeformrelationeditorwidget.h.
|
explicit |
Constructor.
Definition at line 22 of file qgsattributeformrelationeditorwidget.cpp.
|
overridevirtual |
Creates the search widget wrappers for the widget used when the form is in search mode.
context | editor context (not available in Python bindings) |
Implements QgsAttributeFormWidget.
Definition at line 29 of file qgsattributeformrelationeditorwidget.cpp.
|
overridevirtual |
Creates an expression matching the current search filter value and search properties represented in the widget.
Reimplemented from QgsAttributeFormWidget.
Definition at line 40 of file qgsattributeformrelationeditorwidget.cpp.