QGIS/python/gui/auto_generated/attributetable/qgsfeaturelistviewdelegate.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

62 lines
2.0 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistviewdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsFeatureListViewDelegate : QItemDelegate
{
%Docstring(signature="appended")
Custom item delegate for feature list views.
%End
%TypeHeaderCode
#include "qgsfeaturelistviewdelegate.h"
%End
public:
static const int ICON_SIZE;
enum Element
{
EditElement,
SelectionElement
};
explicit QgsFeatureListViewDelegate( QgsFeatureListModel *listModel, QObject *parent = 0 );
void setEditSelectionModel( QItemSelectionModel *editSelectionModel );
Element positionToElement( QPoint pos );
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
void setCurrentFeatureEdited( bool state );
signals:
void editButtonClicked( QModelIndex &index );
%Docstring
Emitted when the edit button is clicked for the feature with matching
``index``.
%End
protected:
virtual QSize sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistviewdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/