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

54 lines
1.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/qgsfeaturelistviewdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFeatureListViewDelegate : QItemDelegate
{
2017-06-08 15:51:05 +02:00
%TypeHeaderCode
2017-06-08 15:51:05 +02:00
#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 );
2014-05-27 23:22:50 +02:00
void setCurrentFeatureEdited( bool state );
signals:
void editButtonClicked( QModelIndex &index );
protected:
virtual QSize sizeHint( const QStyleOptionViewItem &option, const QModelIndex &index ) const;
virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
2017-06-08 15:51:05 +02:00
};
2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistviewdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/