QGIS/python/gui/auto_generated/qgstablewidgetbase.sip.in
Nyall Dawson 63c1d5cfc0 Implement a proper read-only state for list/key value widget wrappers
Instead of just setting the whole widget as disabled, implement proper
read-only state for these widgets. This fixes an annoying UI issue where
the list / key value widgets can't be scrolled when opening read-only
attribute forms, preventing users from viewing all the entries in
the widget.
2024-03-27 11:44:00 +10:00

75 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.pl again *
************************************************************************/
class QgsTableWidgetBase: QWidget, protected Ui::QgsTableWidgetUiBase
{
%Docstring(signature="appended")
Base widget allowing to edit 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.pl again *
************************************************************************/