QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
26 , mRelation( relation )
42 if ( mWidget && mRelation.
isValid() )
49 mWidget->setVisible( visible );
52 void QgsRelationWidgetWrapper::aboutToSave()
87 if ( mWidget && attributeChanged )
90 if ( feature.attribute( attribute ) != newValue )
148 w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
149 if ( ! editor->layout() )
151 editor->setLayout(
new QGridLayout() );
153 editor->layout()->addWidget( w );
160 if (
config( QStringLiteral(
"force-suppress-popup" ),
false ).toBool() )
183 w->setVisible(
false );
204 return visibleButtons().testFlag( QgsAttributeEditorRelation::Button::Link );
217 return visibleButtons().testFlag( QgsAttributeEditorRelation::Button::SaveChildEdits );
266 mWidget->setVisible(
false );
294 return mWidget->
label();
QgsRelationManager * relationManager
void setParentFormFeature(const QgsFeature &feature)
Sets the feature of the currently edited parent form.
static QgsProject * instance()
Returns the QgsProject singleton instance.
Q_INVOKABLE QgsRelation relation(const QString &id) const
Gets access to a relation by its id.
@ Embed
A form was embedded as a widget on another form.
const QgsRelation & relation() const
Returns the attribute relation.
QgsVectorLayer * referencingLayer
#define Q_NOWARN_DEPRECATED_POP
QgsVectorLayer * referencedLayer
FormMode formMode() const
Returns the form mode.
bool setAttribute(int field, const QVariant &attr)
Set an attribute's value by field index.
Represents a vector layer which manages a vector based data sets.
virtual bool isModified() const
Returns true if the provider has been modified since the last commit.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
const QgsAttributeEditorContext * parentContext() const
This class contains context information for attribute editor widgets.
#define Q_NOWARN_DEPRECATED_PUSH
@ Multiple
When showing a list of features (e.g. houses as an embedded form in a district form)
const QgsVectorLayerTools * vectorLayerTools() const
Returns the associated vector layer tools.