Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed docs
  • Loading branch information
domi4484 committed May 10, 2021
1 parent 390bb55 commit 4ac0508
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/gui/editorwidgets/qgsjsoneditconfigdlg.h
Expand Up @@ -26,14 +26,22 @@ SIP_NO_FILE
/**
* \ingroup gui
* \class QgsJsonEditConfigDlg
* \note not available in Python bindings
* \brief The QgsJsonEditConfigDlg is a configuration widget for JSON edit widget.
* \since QGIS 3.20
*/

class GUI_EXPORT QgsJsonEditConfigDlg : public QgsEditorConfigWidget, private Ui::QgsJsonEditConfigDlg
{
Q_OBJECT

public:

/**
* Constructor for QgsJsonEditWidget.
*
* \param vl The layer for which the configuration dialog will be created
* \param fieldIdx The index of the field on the layer for which this dialog will be created
* \param parent A parent widget
*/
explicit QgsJsonEditConfigDlg( QgsVectorLayer *vl, int fieldIdx, QWidget *parent = nullptr );

// QgsEditorConfigWidget interface
Expand Down
4 changes: 4 additions & 0 deletions src/gui/editorwidgets/qgsjsoneditwidgetfactory.h
Expand Up @@ -24,7 +24,9 @@ SIP_NO_FILE
/**
* \ingroup gui
* \class QgsJsonEditWidgetFactory
* \brief Editor widget factory for JSON edit widgets.
* \note not available in Python bindings
* \since QGIS 3.20
*/

class GUI_EXPORT QgsJsonEditWidgetFactory : public QgsEditorWidgetFactory
Expand All @@ -37,6 +39,8 @@ class GUI_EXPORT QgsJsonEditWidgetFactory : public QgsEditorWidgetFactory
*/
QgsJsonEditWidgetFactory( const QString &name );

// QgsEditorWidgetFactory interface
public:
QgsEditorWidgetWrapper *create( QgsVectorLayer *vl, int fieldIdx, QWidget *editor, QWidget *parent ) const override;
QgsEditorConfigWidget *configWidget( QgsVectorLayer *vl, int fieldIdx, QWidget *parent ) const override;

Expand Down
1 change: 1 addition & 0 deletions src/gui/editorwidgets/qgsjsoneditwrapper.h
Expand Up @@ -34,6 +34,7 @@ SIP_NO_FILE
* <li><b>DefaultView</b> <i>Default view, text or tree can be selected.</i></li>
* </ul>
* \note not available in Python bindings
* \since QGIS 3.20
*/

class GUI_EXPORT QgsJsonEditWrapper : public QgsEditorWidgetWrapper
Expand Down

0 comments on commit 4ac0508

Please sign in to comment.