1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsattributetabledelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsAttributeTableDelegate : QItemDelegate
{
%Docstring(signature="appended")
A delegate item class for :py:class:`QgsAttributeTable` (see Qt
documentation for QItemDelegate).
%End
%TypeHeaderCode
#include "qgsattributetabledelegate.h"
%End
public:
QgsAttributeTableDelegate( QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor
:param parent: parent object
%End
virtual QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
%Docstring
Used to create an editor for when the user tries to change the contents
of a cell
%End
virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
%Docstring
Overloads the paint method form the QItemDelegate base class
%End
virtual void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const;
%Docstring
Sets data from editor back to model. Overloads default method
:param editor: editor which was created by create editor function in
this class
:param model: model where data should be updated
:param index: index of field which is to be modified
%End
virtual void setEditorData( QWidget *editor, const QModelIndex &index ) const;
%Docstring
Sets data from model into the editor. Overloads default method
:param editor: editor which was created by create editor function in
this class
:param index: index of field which is to be retrieved
%End
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
signals:
void actionColumnItemPainted( const QModelIndex &index ) const;
%Docstring
Emitted when an action column item is painted. The consumer of this
signal can initialize the index widget.
.. note::
This signal is emitted repeatedly whenever the item is being painted.
It is the consumers responsibility to check if initialization has already
happened before.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsattributetabledelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|