mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Added config() to QgsEditorWidgetWrapper SIP wrapper
This commit is contained in:
parent
84e4539b9e
commit
7cc0a21bf8
@ -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();
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user