fix typos and doc

This commit is contained in:
Julien Cabieces 2021-08-03 14:19:49 +02:00
parent 56127039f5
commit 16c916b723
6 changed files with 8 additions and 6 deletions

View File

@ -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`

View File

@ -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`

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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 );