mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Now all classes and members are either exposed to bindings or marked as "not available in Python bindings" in the docs. Drop test thresholds to 0. Now it should be much easier to determine what missing members have been added which are causing test failures.
32 lines
879 B
Plaintext
32 lines
879 B
Plaintext
class QgsFeatureListViewDelegate : QItemDelegate
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsfeaturelistviewdelegate.h>
|
|
%End
|
|
public:
|
|
static const int sIconSize;
|
|
|
|
enum Element
|
|
{
|
|
EditElement,
|
|
SelectionElement
|
|
};
|
|
|
|
explicit QgsFeatureListViewDelegate( QgsFeatureListModel* listModel, QObject *parent = 0 );
|
|
|
|
void setEditSelectionModel( QItemSelectionModel* editSelectionModel );
|
|
|
|
Element positionToElement( const QPoint& pos );
|
|
|
|
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;
|
|
};
|