2016-09-07 14:30:10 +02:00
|
|
|
/** \ingroup gui
|
|
|
|
* Base widget allowing to edit a collection, using a table.
|
|
|
|
* @note added in QGIS 3.0
|
|
|
|
*/
|
|
|
|
class QgsTableWidgetBase: public QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgstablewidgetbase.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*/
|
|
|
|
explicit QgsTableWidgetBase( QWidget* parent );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
/**
|
2017-01-16 15:13:30 +01:00
|
|
|
* Initialize the table with the given model.
|
2016-09-07 14:30:10 +02:00
|
|
|
* Must be called once in the child class' constructor.
|
|
|
|
*/
|
|
|
|
void init( QAbstractTableModel* model );
|
|
|
|
|
|
|
|
signals:
|
|
|
|
/**
|
|
|
|
* Emitted each time a key or a value is changed.
|
|
|
|
*/
|
|
|
|
void valueChanged();
|
|
|
|
};
|