24 #include <QGridLayout>
35 QString aggregateFilter;
40 if ( aggregateFilter.isEmpty() )
41 return QStringLiteral(
"TRUE" );
43 return aggregateFilter;
60 widget =
new QLabel( tr(
"Relation not valid" ) );
64 mContainerWidget =
new QWidget( parent );
66 widget->installEventFilter(
this );
69 groupBox->setLayout(
new QGridLayout() );
70 groupBox->layout()->addWidget(
widget );
88 bool rv = QgsSearchWidgetWrapper::eventFilter( watched, event );
89 if ( event->type() == QEvent::Show && !mAttributeForm )
94 QGridLayout *glayout =
new QGridLayout();
95 mContainerWidget->setLayout( glayout );
96 glayout->setContentsMargins( 0, 0, 0, 0 );
97 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...
QgsVectorLayer * referencingLayer
Represents a vector layer which manages a vector based data sets.