A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
More...
#include <qgsattributetabledelegate.h>
Public Member Functions |
| QgsAttributeTableDelegate (QObject *parent=NULL) |
| Constructor.
|
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Used to create an editor for when the user tries to change the contents of a cell.
|
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Overloads the paint method form the QItemDelegate bas class.
|
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| Sets data from editor back to model.
|
void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| Sets data from model into the editor.
|
void | setFeatureSelectionModel (QgsFeatureSelectionModel *featureSelectionModel) |
Detailed Description
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
Constructor & Destructor Documentation
QgsAttributeTableDelegate::QgsAttributeTableDelegate |
( |
QObject * |
parent = NULL | ) |
|
|
inline |
Member Function Documentation
QWidget * QgsAttributeTableDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Used to create an editor for when the user tries to change the contents of a cell.
void QgsAttributeTableDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Overloads the paint method form the QItemDelegate bas class.
void QgsAttributeTableDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Sets data from model into the editor.
Overloads default method
- Parameters
-
editor | editor which was created by create editor function in this class |
index | index of field which is to be retrieved |
void QgsAttributeTableDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Sets data from editor back to model.
Overloads default method
- Parameters
-
editor | editor which was created by create editor function in this class |
model | model where data should be updated |
index | index of field which is to be modified |
The documentation for this class was generated from the following files: