| 
    QGIS API Documentation
    3.4.15-Madeira (e83d02e274)
    
   | 
 
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate). More...
#include <qgsattributetabledelegate.h>

Signals | |
| void | actionColumnItemPainted (const QModelIndex &index) const | 
| Is emitted when an action column item is painted.  More... | |
Public Member Functions | |
| QgsAttributeTableDelegate (QObject *parent=nullptr) | |
| Constructor.  More... | |
| QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override | 
| Used to create an editor for when the user tries to change the contents of a cell.  More... | |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override | 
| Overloads the paint method form the QItemDelegate base class.  More... | |
| void | setEditorData (QWidget *editor, const QModelIndex &index) const override | 
| Sets data from model into the editor.  More... | |
| void | setFeatureSelectionModel (QgsFeatureSelectionModel *featureSelectionModel) | 
| void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override | 
| Sets data from editor back to model.  More... | |
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
Definition at line 35 of file qgsattributetabledelegate.h.
      
  | 
  inline | 
Constructor.
| parent | parent object | 
Definition at line 48 of file qgsattributetabledelegate.h.
      
  | 
  signal | 
Is emitted when an action column item is painted.
The consumer of this signal can initialize the index widget.
      
  | 
  override | 
Used to create an editor for when the user tries to change the contents of a cell.
Definition at line 62 of file qgsattributetabledelegate.cpp.
      
  | 
  override | 
Overloads the paint method form the QItemDelegate base class.
Definition at line 148 of file qgsattributetabledelegate.cpp.
      
  | 
  override | 
Sets data from model into the editor.
Overloads default method
| editor | editor which was created by create editor function in this class | 
| index | index of field which is to be retrieved | 
Definition at line 134 of file qgsattributetabledelegate.cpp.
| void QgsAttributeTableDelegate::setFeatureSelectionModel | ( | QgsFeatureSelectionModel * | featureSelectionModel | ) | 
Definition at line 143 of file qgsattributetabledelegate.cpp.
      
  | 
  override | 
Sets data from editor back to model.
Overloads default method
| 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 | 
Definition at line 100 of file qgsattributetabledelegate.cpp.
 1.8.11