create attribute widget for editing
More...
#include <qgsattributeeditor.h>
|
static Q_DECL_DEPRECATED QWidget * | createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QMap< int, QWidget * > &proxyWidgets) |
| Creates or prepares a attribute editor widget. More...
|
|
static QWidget * | createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value) |
| Creates or prepares a attribute editor widget. More...
|
|
static QWidget * | createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QgsAttributeEditorContext &context) |
| Creates or prepares a attribute editor widget. More...
|
|
static bool | retrieveValue (QWidget *widget, QgsVectorLayer *vl, int idx, QVariant &value) |
|
static bool | setValue (QWidget *widget, QgsVectorLayer *vl, int idx, const QVariant &value) |
|
create attribute widget for editing
- Deprecated:
Definition at line 38 of file qgsattributeeditor.h.
QgsAttributeEditor::QgsAttributeEditor |
( |
QObject * |
parent, |
|
|
QgsVectorLayer * |
vl = 0 , |
|
|
int |
idx = -1 |
|
) |
| |
|
inline |
QWidget * QgsAttributeEditor::createAttributeEditor |
( |
QWidget * |
parent, |
|
|
QWidget * |
editor, |
|
|
QgsVectorLayer * |
vl, |
|
|
int |
idx, |
|
|
const QVariant & |
value, |
|
|
QMap< int, QWidget * > & |
proxyWidgets |
|
) |
| |
|
static |
Creates or prepares a attribute editor widget.
- Parameters
-
parent | The parent object |
editor | The widget to prepare. Set to null if it should be generated |
vl | The vector layer to use as data source |
idx | The field index this widget refers to |
value | the value to initiate this widget with |
proxyWidgets | an array of widgets, which will act as a value proxy if the same field is inserted multiple times |
- Deprecated:
Definition at line 70 of file qgsattributeeditor.cpp.
Referenced by createAttributeEditor(), and QgsFormAnnotationItem::createDesignerWidget().
QWidget * QgsAttributeEditor::createAttributeEditor |
( |
QWidget * |
parent, |
|
|
QWidget * |
editor, |
|
|
QgsVectorLayer * |
vl, |
|
|
int |
idx, |
|
|
const QVariant & |
value |
|
) |
| |
|
static |
Creates or prepares a attribute editor widget.
- Parameters
-
parent | The parent object |
editor | The widget to prepare. Set to null if it should be generated |
vl | The vector layer to use as data source |
idx | The field index this widget refers to |
value | the value to initiate this widget with |
Definition at line 63 of file qgsattributeeditor.cpp.
References createAttributeEditor().
Creates or prepares a attribute editor widget.
- Parameters
-
parent | The parent object |
editor | The widget to prepare. Set to null if it should be generated |
vl | The vector layer to use as data source |
idx | The field index this widget refers to |
value | the value to initiate this widget with |
context | the context used for the created attribute editor |
Definition at line 79 of file qgsattributeeditor.cpp.
References QgsVectorLayer::editorWidgetV2(), and QgsVectorLayer::editorWidgetV2Config().
bool QgsAttributeEditor::retrieveValue |
( |
QWidget * |
widget, |
|
|
QgsVectorLayer * |
vl, |
|
|
int |
idx, |
|
|
QVariant & |
value |
|
) |
| |
|
static |
bool QgsAttributeEditor::setValue |
( |
QWidget * |
widget, |
|
|
QgsVectorLayer * |
vl, |
|
|
int |
idx, |
|
|
const QVariant & |
value |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: