QGIS/python/gui/qgskeyvaluewidget.sip

33 lines
645 B
Plaintext
Raw Normal View History

2016-09-07 09:20:34 +02:00
/** \ingroup gui
* Widget allowing to edit a QVariantMap, using a table.
* @note added in QGIS 3.0
*/
2016-09-07 14:30:10 +02:00
class QgsKeyValueWidget : public QgsTableWidgetBase
2016-09-07 09:20:34 +02:00
{
%TypeHeaderCode
#include "qgskeyvaluewidget.h"
%End
public:
/**
* Constructor.
*/
explicit QgsKeyValueWidget( QWidget* parent /TransferThis/ = 0 );
/**
* Set the initial value of the widget.
*/
void setMap( const QVariantMap& map );
/**
* Get the edit value.
* @return the QVariantMap
*/
QVariantMap map() const;
signals:
/**
* Emitted each time a key or a value is changed.
*/
void valueChanged();
};