File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
python/gui/editorwidgets/core Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 16
16
class QgsEditorWidgetWrapper : QObject
17
17
{
18
18
%TypeHeaderCode
19
+ #include <qgseditorwidgetconfig.h>
19
20
#include <qgseditorwidgetwrapper.h>
20
21
%End
21
22
@@ -32,7 +33,31 @@ class QgsEditorWidgetWrapper : QObject
32
33
33
34
QWidget* widget();
34
35
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
+ */
36
61
QgsVectorLayer* layer();
37
62
38
63
/**
You can’t perform that action at this time.
0 commit comments