create attribute widget for editing
More...
#include <qgsattributeeditor.h>
Static Public Member Functions |
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.
|
static QWidget * | createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value) |
| Creates or prepares a attribute editor widget.
|
static QWidget * | createAttributeEditor (QWidget *parent, QWidget *editor, QgsVectorLayer *vl, int idx, const QVariant &value, QgsAttributeEditorContext &context) |
| Creates or prepares a attribute editor widget.
|
static bool | retrieveValue (QWidget *widget, QgsVectorLayer *vl, int idx, QVariant &value) |
static bool | setValue (QWidget *widget, QgsVectorLayer *vl, int idx, const QVariant &value) |
Detailed Description
create attribute widget for editing
- Deprecated:
Definition at line 38 of file qgsattributeeditor.h.
Constructor & Destructor Documentation
QgsAttributeEditor::QgsAttributeEditor |
( |
QObject * |
parent, |
|
|
QgsVectorLayer * |
vl = 0 , |
|
|
int |
idx = -1 |
|
) |
| |
|
inline |
Member Function Documentation
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.
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.
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.
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: