mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
33 lines
645 B
Plaintext
33 lines
645 B
Plaintext
/** \ingroup gui
|
|
* Widget allowing to edit a QVariantMap, using a table.
|
|
* @note added in QGIS 3.0
|
|
*/
|
|
class QgsKeyValueWidget : public QgsTableWidgetBase
|
|
{
|
|
%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();
|
|
};
|