Added config() to QgsEditorWidgetWrapper SIP wrapper

This commit is contained in:
elpaso 2015-11-20 10:47:57 +01:00
parent 84e4539b9e
commit 7cc0a21bf8

View File

@ -16,6 +16,7 @@
class QgsEditorWidgetWrapper : QObject
{
%TypeHeaderCode
#include <qgseditorwidgetconfig.h>
#include <qgseditorwidgetwrapper.h>
%End
@ -32,7 +33,31 @@ class QgsEditorWidgetWrapper : QObject
QWidget* widget();
virtual void setConfig( QMap<QString, QVariant> config );
QVariant config( QString key );
/**
* Use this to access the configuration.
*
* @param key The configuration option you want to load
* @param defaultVal Default value
*
* @return the value assigned to this configuration option
*/
QVariant config( const QString& key, const QVariant& defaultVal = QVariant() );
/**
* Returns the whole config
*
* @return The configuration
*/
const QgsEditorWidgetConfig config();
/**
* Access the QgsVectorLayer, you are working on
*
* @return The layer
*
* @see field()
*/
QgsVectorLayer* layer();
/**