Skip to content

Commit

Permalink
Code layout
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Mar 4, 2020
1 parent 195efa4 commit af8a55b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions python/gui/auto_generated/qgsrelationeditorwidget.sip.in
Expand Up @@ -51,6 +51,9 @@ Gets the view mode for the dual view
%End %End


void setRelationFeature( const QgsRelation &relation, const QgsFeature &feature ); void setRelationFeature( const QgsRelation &relation, const QgsFeature &feature );
%Docstring
Sets the ``relation`` and the ``feature``
%End


void setRelations( const QgsRelation &relation, const QgsRelation &nmrelation ); void setRelations( const QgsRelation &relation, const QgsRelation &nmrelation );
%Docstring %Docstring
Expand All @@ -69,6 +72,9 @@ Sets the ``feature`` being edited and updates the UI unless ``update`` is set to
%End %End


void setEditorContext( const QgsAttributeEditorContext &context ); void setEditorContext( const QgsAttributeEditorContext &context );
%Docstring
Sets the editor ``context``
%End


QgsIFeatureSelectionManager *featureSelectionManager(); QgsIFeatureSelectionManager *featureSelectionManager();
%Docstring %Docstring
Expand Down
8 changes: 7 additions & 1 deletion src/gui/qgsrelationeditorwidget.h
Expand Up @@ -111,6 +111,9 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsCollapsibleGroupBox
//! Gets the view mode for the dual view //! Gets the view mode for the dual view
QgsDualView::ViewMode viewMode() {return mViewMode;} QgsDualView::ViewMode viewMode() {return mViewMode;}


/**
* Sets the \a relation and the \a feature
*/
void setRelationFeature( const QgsRelation &relation, const QgsFeature &feature ); void setRelationFeature( const QgsRelation &relation, const QgsFeature &feature );


/** /**
Expand All @@ -129,6 +132,9 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsCollapsibleGroupBox
*/ */
void setFeature( const QgsFeature &feature, bool update = true ); void setFeature( const QgsFeature &feature, bool update = true );


/**
* Sets the editor \a context
*/
void setEditorContext( const QgsAttributeEditorContext &context ); void setEditorContext( const QgsAttributeEditorContext &context );


/** /**
Expand Down Expand Up @@ -193,7 +199,7 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsCollapsibleGroupBox
*/ */
bool showSaveChildEditsButton() const; bool showSaveChildEditsButton() const;


/* /**
* Returns the widget's current feature * Returns the widget's current feature
* *
* \since QGIS 3.14 * \since QGIS 3.14
Expand Down

0 comments on commit af8a55b

Please sign in to comment.