Skip to content
Permalink
Browse files

Added config() to QgsEditorWidgetWrapper SIP wrapper

  • Loading branch information
elpaso committed Nov 20, 2015
1 parent 84e4539 commit 7cc0a21bf8ae24a511d863073393b5a658c36438
Showing with 26 additions and 1 deletion.
  1. +26 −1 python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip
@@ -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();

/**

0 comments on commit 7cc0a21

Please sign in to comment.
You can’t perform that action at this time.