QGIS/python/PyQt6/gui/auto_generated/qgslistwidget.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

64 lines
1.7 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgslistwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsListWidget: QgsTableWidgetBase
{
%Docstring(signature="appended")
Widget allowing to edit a QVariantList, using a table.
%End
%TypeHeaderCode
#include "qgslistwidget.h"
%End
public:
explicit QgsListWidget( QVariant::Type subType, QWidget *parent = 0 );
%Docstring
Constructor.
%End
void setList( const QVariantList &list );
%Docstring
Set the initial value of the widget.
%End
QVariantList list() const;
%Docstring
Gets the edit value.
:return: the QVariantList
%End
bool valid() const;
%Docstring
Check the content is valid
:return: ``True`` if valid
%End
public slots:
virtual void setReadOnly( bool readOnly );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgslistwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/