QGIS/python/gui/auto_generated/qgstablewidgetbase.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

73 lines
2.1 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgstablewidgetbase.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsTableWidgetBase : QWidget, protected Ui::QgsTableWidgetUiBase
{
%Docstring(signature="appended")
Base widget allowing editing a collection, using a table.
This widget includes buttons to add and remove rows. Child classes must
call init(QAbstractTableModel*) from their constructor.
%End
%TypeHeaderCode
#include "qgstablewidgetbase.h"
%End
public:
explicit QgsTableWidgetBase( QWidget *parent );
%Docstring
Constructor.
%End
bool isReadOnly() const;
%Docstring
Returns ``True`` if the widget is shown in a read-only state.
.. seealso:: :py:func:`setReadOnly`
.. versionadded:: 3.38
%End
public slots:
virtual void setReadOnly( bool readOnly );
%Docstring
Sets whether the widget should be shown in a read-only state.
.. seealso:: :py:func:`isReadOnly`
.. versionadded:: 3.38
%End
protected:
void init( QAbstractTableModel *model );
%Docstring
Initialize the table with the given model. Must be called once in the
child class' constructor.
%End
signals:
void valueChanged();
%Docstring
Emitted each time a key or a value is changed.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgstablewidgetbase.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/