2016-09-07 14:30:10 +02:00
|
|
|
/** \ingroup gui
|
|
|
|
* Widget allowing to edit a QVariantList, using a table.
|
|
|
|
* @note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
class QgsListWidget : public QgsTableWidgetBase
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslistwidget.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
explicit QgsListWidget( QVariant::Type subType, QWidget *parent = nullptr );
|
2016-09-07 14:30:10 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the initial value of the widget.
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void setList( const QVariantList &list );
|
2016-09-07 14:30:10 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the edit value.
|
|
|
|
* @return the QVariantList
|
|
|
|
*/
|
|
|
|
QVariantList list() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Check the content is valid
|
|
|
|
* @return true if valid
|
|
|
|
*/
|
|
|
|
bool valid() const;
|
|
|
|
};
|