28#include "moc_qgsrelationaggregatesearchwidgetwrapper.cpp"
30using namespace Qt::StringLiterals;
41 QString aggregateFilter;
44 aggregateFilter = mAttributeForm->aggregateFilter();
46 if ( aggregateFilter.isEmpty() )
49 return aggregateFilter;
66 widget =
new QLabel( tr(
"Relation not valid" ) );
70 mContainerWidget =
new QWidget( parent );
72 widget->installEventFilter(
this );
75 groupBox->setLayout(
new QGridLayout() );
76 groupBox->layout()->addWidget(
widget );
94 const bool rv = QgsSearchWidgetWrapper::eventFilter( watched, event );
95 if ( event->type() == QEvent::Show && !mAttributeForm )
100 QGridLayout *glayout =
new QGridLayout();
101 mContainerWidget->setLayout( glayout );
102 glayout->setContentsMargins( 0, 0, 0, 0 );
103 glayout->addWidget( mAttributeForm );
Contains context information for attribute editor widgets.
@ Multiple
When showing a list of features (e.g. houses as an embedded form in a district form).
@ Embed
A form was embedded as a widget on another form.
@ AggregateSearchMode
Form is in aggregate search mode, show each widget in this mode.
const QgsRelation & relation() const
Returns the attribute relation.
A groupbox that collapses/expands when toggled and can save its collapsed and checked states.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Represents a relationship between two vector layers.
Represents a vector layer which manages a vector based dataset.
#define QgsDebugError(str)