18#include "moc_qgsrelationaggregatesearchwidgetwrapper.cpp"
36 QString aggregateFilter;
41 if ( aggregateFilter.isEmpty() )
42 return QStringLiteral(
"TRUE" );
44 return aggregateFilter;
61 widget =
new QLabel( tr(
"Relation not valid" ) );
65 mContainerWidget =
new QWidget( parent );
67 widget->installEventFilter(
this );
70 groupBox->setLayout(
new QGridLayout() );
71 groupBox->layout()->addWidget(
widget );
89 const bool rv = QgsSearchWidgetWrapper::eventFilter( watched, event );
90 if ( event->type() == QEvent::Show && !mAttributeForm )
95 QGridLayout *glayout =
new QGridLayout();
96 mContainerWidget->setLayout( glayout );
97 glayout->setContentsMargins( 0, 0, 0, 0 );
98 glayout->addWidget( mAttributeForm );
This class 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.
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.
QgsVectorLayer * referencingLayer
Represents a vector layer which manages a vector based data sets.
#define QgsDebugError(str)