Skip to content

Commit

Permalink
updateProperties function private and no reference for currentFormFea…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
signedav committed Aug 17, 2020
1 parent 6be231b commit 6fbeb47
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsattributeform.sip.in
Expand Up @@ -44,7 +44,7 @@ class QgsAttributeForm : QWidget

const QgsFeature &feature();

const QgsFeature &currentFormFeature();
QgsFeature currentFormFeature() const;
%Docstring
Returns the feature that is currently displayed in the form with all
the changes received on editing the values in the widgets.
Expand Down
1 change: 1 addition & 0 deletions python/gui/auto_generated/qgsexternalresourcewidget.sip.in
Expand Up @@ -138,6 +138,7 @@ is set to QgsFileWidget.RelativeDefaultPath.
void reloadDocument();
%Docstring
Reloads the document from the path of the filewidget
/since QGIS 3.16
%End

signals:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsexternalresourcewidgetwrapper.h
Expand Up @@ -59,7 +59,6 @@ class GUI_EXPORT QgsExternalResourceWidgetWrapper : public QgsEditorWidgetWrappe
public:
QVariant value() const override;
void showIndeterminateState() override;
void updateProperties( const QgsFeature &feature );

protected:
QWidget *createWidget( QWidget *parent ) override;
Expand All @@ -85,6 +84,7 @@ class GUI_EXPORT QgsExternalResourceWidgetWrapper : public QgsEditorWidgetWrappe
private:
void updateValues( const QVariant &value, const QVariantList & = QVariantList() ) override;
void updateConstraintWidgetStatus() override;
void updateProperties( const QgsFeature &feature );

QLineEdit *mLineEdit = nullptr;
QLabel *mLabel = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributeform.h
Expand Up @@ -81,7 +81,7 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
*
* \since QGIS 3.16
*/
const QgsFeature &currentFormFeature() { return mCurrentFormFeature; }
QgsFeature currentFormFeature() const { return mCurrentFormFeature; }

/**
* Displays a warning message in the form message bar
Expand Down
1 change: 1 addition & 0 deletions src/gui/qgsexternalresourcewidget.h
Expand Up @@ -145,6 +145,7 @@ class GUI_EXPORT QgsExternalResourceWidget : public QWidget

/**
* Reloads the document from the path of the filewidget
* /since QGIS 3.16
*/
void reloadDocument();

Expand Down

0 comments on commit 6fbeb47

Please sign in to comment.