QGIS/python/gui/auto_generated/attributetable/qgsattributetabledelegate.sip.in

89 lines
2.9 KiB
Plaintext
Raw Normal View History

2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsattributetabledelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsAttributeTableDelegate : QItemDelegate
{
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A delegate item class for QgsAttributeTable (see Qt documentation for
QItemDelegate).
%End
2017-06-08 15:51:05 +02:00
%TypeHeaderCode
#include "qgsattributetabledelegate.h"
%End
public:
2017-06-08 15:51:05 +02:00
QgsAttributeTableDelegate( QObject *parent /TransferThis/ = 0 );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param parent: parent object
2017-06-08 15:51:05 +02:00
%End
virtual QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Used to create an editor for when the user tries to
change the contents of a cell
2017-06-08 15:51:05 +02:00
%End
virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Overloads the paint method form the QItemDelegate base class
2017-06-08 15:51:05 +02:00
%End
virtual void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Sets data from editor back to model. Overloads default method
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
: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
2017-06-08 15:51:05 +02:00
%End
virtual void setEditorData( QWidget *editor, const QModelIndex &index ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Sets data from model into the editor. Overloads default method
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param editor: editor which was created by create editor function in this class
:param index: index of field which is to be retrieved
2017-06-08 15:51:05 +02:00
%End
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
2016-04-29 13:22:11 +02:00
signals:
2017-06-08 15:51:05 +02:00
void actionColumnItemPainted( const QModelIndex &index ) const;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is emitted when an action column item is painted.
The consumer of this signal can initialize the index widget.
2017-06-08 15:51:05 +02:00
.. note::
This signal is emitted repeatedly whenever the item is being painted.
2018-01-12 20:51:17 -04:00
It is the consumers responsibility to check if initialization has already
happened before.
2017-06-08 15:51:05 +02:00
%End
};
2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsattributetabledelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/