Skip to content

Commit 7cc0a21

Browse files
committed
Added config() to QgsEditorWidgetWrapper SIP wrapper
1 parent 84e4539 commit 7cc0a21

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

python/gui/editorwidgets/core/qgseditorwidgetwrapper.sip

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
class QgsEditorWidgetWrapper : QObject
1717
{
1818
%TypeHeaderCode
19+
#include <qgseditorwidgetconfig.h>
1920
#include <qgseditorwidgetwrapper.h>
2021
%End
2122

@@ -32,7 +33,31 @@ class QgsEditorWidgetWrapper : QObject
3233

3334
QWidget* widget();
3435
virtual void setConfig( QMap<QString, QVariant> config );
35-
QVariant config( QString key );
36+
37+
/**
38+
* Use this to access the configuration.
39+
*
40+
* @param key The configuration option you want to load
41+
* @param defaultVal Default value
42+
*
43+
* @return the value assigned to this configuration option
44+
*/
45+
QVariant config( const QString& key, const QVariant& defaultVal = QVariant() );
46+
47+
/**
48+
* Returns the whole config
49+
*
50+
* @return The configuration
51+
*/
52+
const QgsEditorWidgetConfig config();
53+
54+
/**
55+
* Access the QgsVectorLayer, you are working on
56+
*
57+
* @return The layer
58+
*
59+
* @see field()
60+
*/
3661
QgsVectorLayer* layer();
3762

3863
/**

0 commit comments

Comments
 (0)