QGIS/python/gui/attributetable/qgsfeaturelistviewdelegate.sip
Nyall Dawson 4da1ce8404 Drop redundant virtual keywords on overrides
Run clang-tidy modernize-use-override to remove all the redundant
virtual keywords from overridden methods, and add some missing
overrides.

Another benefit is that this has also added the overrides
on destructors, which will cause a build failure if a base
class is missing a virtual destructor.
2017-12-16 08:49:36 +10:00

58 lines
1.9 KiB
Plaintext

/************************************************************************
* 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
{
%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 );
%Docstring
:rtype: Element
%End
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel );
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;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeaturelistviewdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/