27#include "moc_qgsrelationaggregatesearchwidgetwrapper.cpp"
38 QString aggregateFilter;
41 aggregateFilter = mAttributeForm->aggregateFilter();
43 if ( aggregateFilter.isEmpty() )
44 return QStringLiteral(
"TRUE" );
46 return aggregateFilter;
63 widget =
new QLabel( tr(
"Relation not valid" ) );
67 mContainerWidget =
new QWidget( parent );
69 widget->installEventFilter(
this );
72 groupBox->setLayout(
new QGridLayout() );
73 groupBox->layout()->addWidget(
widget );
91 const bool rv = QgsSearchWidgetWrapper::eventFilter( watched, event );
92 if ( event->type() == QEvent::Show && !mAttributeForm )
97 QGridLayout *glayout =
new QGridLayout();
98 mContainerWidget->setLayout( glayout );
99 glayout->setContentsMargins( 0, 0, 0, 0 );
100 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)