|
| QgsRelationWidgetWrapper (const QString &relationEditorName, QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor=nullptr, QWidget *parent=nullptr) |
| Constructor for QgsRelationWidgetWrapper. More...
|
|
| QgsRelationWidgetWrapper (QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor=nullptr, QWidget *parent=nullptr) |
| Constructor for QgsRelationWidgetWrapper. More...
|
|
bool | forceSuppressFormPopup () const |
| Determines the force suppress form popup status that is configured for this widget. More...
|
|
Q_DECL_DEPRECATED QString | label () const |
| Determines the label of this element. More...
|
|
QVariant | nmRelationId () const |
| Determines the relation id of the second relation involved in an N:M relation. More...
|
|
QgsRelation | relation () const |
| The relation for which this wrapper is created. More...
|
|
void | setForceSuppressFormPopup (bool forceSuppressFormPopup) |
| Sets force suppress form popup status to forceSuppressFormPopup for this widget and for the vectorLayerTools (if true ). More...
|
|
Q_DECL_DEPRECATED void | setLabel (const QString &label=QString()) |
| Sets label for this element If it's empty it takes the relation id as label. More...
|
|
void | setNmRelationId (const QVariant &nmRelationId=QVariant()) |
| Sets nmRelationId for the relation id of the second relation involved in an N:M relation. More...
|
|
Q_DECL_DEPRECATED void | setShowLabel (bool showLabel) |
| Defines if a title label should be shown for this widget. More...
|
|
Q_DECL_DEPRECATED void | setShowLinkButton (bool showLinkButton) |
| Determines if the "link feature" button should be shown. More...
|
|
Q_DECL_DEPRECATED void | setShowSaveChildEditsButton (bool showChildEdits) |
| Determines if the "Save child layer edits" button should be shown. More...
|
|
Q_DECL_DEPRECATED void | setShowUnlinkButton (bool showUnlinkButton) |
| Determines if the "unlink feature" button should be shown. More...
|
|
Q_DECL_DEPRECATED void | setVisibleButtons (const QgsAttributeEditorRelation::Buttons &buttons) |
| Defines the buttons which are shown. More...
|
|
void | setWidgetConfig (const QVariantMap &config) |
| Will set the config of this widget wrapper to the specified config. More...
|
|
Q_DECL_DEPRECATED bool | showLabel () const |
| Defines if a title label should be shown for this widget. More...
|
|
Q_DECL_DEPRECATED bool | showLinkButton () const |
| Determines if the "link feature" button should be shown. More...
|
|
Q_DECL_DEPRECATED bool | showSaveChildEditsButton () const |
| Determines if the "Save child layer edits" button should be shown. More...
|
|
Q_DECL_DEPRECATED bool | showUnlinkButton () const |
| Determines if the "unlink feature" button should be shown. More...
|
|
Q_DECL_DEPRECATED QgsAttributeEditorRelation::Buttons | visibleButtons () const |
| Returns the buttons which are shown. More...
|
|
QVariantMap | widgetConfig () const |
| Returns the whole widget config. More...
|
|
void | widgetValueChanged (const QString &attribute, const QVariant &newValue, bool attributeChanged) |
| Will be called when a value in the current edited form or table row changes. More...
|
|
| QgsWidgetWrapper (QgsVectorLayer *vl, QWidget *editor=nullptr, QWidget *parent=nullptr) |
| Create a new widget wrapper. More...
|
|
QVariantMap | config () const |
| Returns the whole config. More...
|
|
QVariant | config (const QString &key, const QVariant &defaultVal=QVariant()) const |
| Use this inside your overridden classes to access the configuration. More...
|
|
const QgsAttributeEditorContext & | context () const |
| Returns information about the context in which this widget is shown. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
QgsVectorLayer * | layer () const |
| Returns the vector layer associated with the widget. More...
|
|
void | notifyAboutToSave () |
| Notify this widget, that the containing form is about to save and that any pending changes should be pushed to the edit buffer or they might be lost. More...
|
|
void | setConfig (const QVariantMap &config) |
| Will set the config of this wrapper to the specified config. More...
|
|
void | setContext (const QgsAttributeEditorContext &context) |
| Set the context in which this widget is shown. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the editor widget's property collection, used for data defined overrides. More...
|
|
virtual bool | valid () const =0 |
| Returns true if the widget has been properly initialized. More...
|
|
QWidget * | widget () |
| Access the widget managed by this wrapper. More...
|
|
template<class T > |
T * | widget () |
| Access the widget managed by this wrapper and cast it to a given type. More...
|
|