/usr/include/qgis/qgsfeaturelistviewdelegate.h is in libqgis-dev 2.0.1-2build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef QGSATTRIBUTELISTVIEWDELEGATE_H
#define QGSATTRIBUTELISTVIEWDELEGATE_H
#include <QItemDelegate>
#include <QItemSelectionModel>
#include "qgsfeature.h"
class QgsVectorLayer;
class QgsFeatureListModel;
class QgsFeatureSelectionModel;
class QPosition;
class GUI_EXPORT QgsFeatureListViewDelegate : public QItemDelegate
{
Q_OBJECT
public:
static int const sIconSize = 24;
enum Element
{
EditElement,
SelectionElement
};
explicit QgsFeatureListViewDelegate( QgsFeatureListModel* listModel, QObject *parent = 0 );
void setEditSelectionModel( QItemSelectionModel* editSelectionModel );
Element positionToElement( const QPoint& pos );
void setFeatureSelectionModel( QgsFeatureSelectionModel* featureSelectionModel );
signals:
void editButtonClicked( QModelIndex& index );
public slots:
protected:
virtual QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
virtual void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
private:
QgsFeatureSelectionModel* mFeatureSelectionModel;
QItemSelectionModel* mEditSelectionModel;
QgsFeatureListModel* mListModel;
};
#endif // QGSATTRIBUTELISTVIEWDELEGATE_H
|