Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix typos and doc
  • Loading branch information
troopa81 committed Aug 16, 2021
1 parent 5612703 commit 16c916b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsexternalresourcewidget.sip.in
Expand Up @@ -147,7 +147,7 @@ null QString if there is no storage defined, only file selection.

QString storageType() const;
%Docstring
Get storage type unique identifier as defined in :py:class:`QgsExternalStorageRegistry`.
Returns storage type unique identifier as defined in :py:class:`QgsExternalStorageRegistry`.
Returns null QString if there is no storage defined, only file selection.

.. seealso:: :py:func:`setStorageType`
Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsfilewidget.sip.in
Expand Up @@ -93,7 +93,7 @@ selected files.

QString storageType() const;
%Docstring
Get storage type unique identifier as defined in :py:class:`QgsExternalStorageRegistry`.
Returns storage type unique identifier as defined in :py:class:`QgsExternalStorageRegistry`.
Returns null QString if there is no storage defined, only file selection.

.. seealso:: :py:func:`setStorageType`
Expand Down
4 changes: 3 additions & 1 deletion src/gui/editorwidgets/qgsexternalresourcewidgetwrapper.h
Expand Up @@ -66,7 +66,9 @@ class GUI_EXPORT QgsExternalResourceWidgetWrapper : public QgsEditorWidgetWrappe
void initWidget( QWidget *editor ) override;
bool valid() const override;

// update file widget current expression context according to layer, feature, and parent feature
/**
* Update file widget current expression context according to layer, feature, and parent feature
*/
void updateFileWidgetExpressionContext();

public slots:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexternalresourcewidget.h
Expand Up @@ -153,7 +153,7 @@ class GUI_EXPORT QgsExternalResourceWidget : public QWidget
void setStorageType( const QString &storageType );

/**
* Get storage type unique identifier as defined in QgsExternalStorageRegistry.
* Returns storage type unique identifier as defined in QgsExternalStorageRegistry.
* Returns null QString if there is no storage defined, only file selection.
* \see setStorageType
* \since QGIS 3.22
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsfilewidget.h
Expand Up @@ -136,7 +136,7 @@ class GUI_EXPORT QgsFileWidget : public QWidget
void setStorageType( const QString &storageType );

/**
* Get storage type unique identifier as defined in QgsExternalStorageRegistry.
* Returns storage type unique identifier as defined in QgsExternalStorageRegistry.
* Returns null QString if there is no storage defined, only file selection.
* \see setStorageType
* \since QGIS 3.22
Expand Down
2 changes: 1 addition & 1 deletion tests/src/gui/testqgsfilewidget.cpp
Expand Up @@ -587,7 +587,7 @@ void TestQgsFileWidget::testStoringSeveralFilesError_data()

void TestQgsFileWidget::testStoringSeveralFilesError()
{
// test widget when storing several files with an external storage and an error occured
// test widget when storing several files with an external storage and an error occurred
QEventLoop loop;
QFETCH( bool, useLink );

Expand Down

0 comments on commit 16c916b

Please sign in to comment.