QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Slots | Public Member Functions | List of all members
QgsFeatureListModel Class Reference

#include <qgsfeaturelistmodel.h>

Inheritance diagram for QgsFeatureListModel:
Inheritance graph
[legend]

Classes

struct  FeatureInfo

Public Types

enum  Role { FeatureInfoRole = Qt::UserRole, FeatureRole }

Public Slots

void onBeginRemoveRows (const QModelIndex &parent, int first, int last)
void onEndRemoveRows (const QModelIndex &parent, int first, int last)
void onBeginInsertRows (const QModelIndex &parent, int first, int last)
void onEndInsertRows (const QModelIndex &parent, int first, int last)

Public Member Functions

 QgsFeatureListModel (QgsAttributeTableFilterModel *sourceModel, QObject *parent=NULL)
virtual ~QgsFeatureListModel ()
virtual void setSourceModel (QgsAttributeTableFilterModel *sourceModel)
QgsVectorLayerCachelayerCache ()
virtual QVariant data (const QModelIndex &index, int role) const
virtual Qt::ItemFlags flags (const QModelIndex &index) const
QgsAttributeTableModelmasterModel ()
bool setDisplayExpression (const QString expression)
QString parserErrorString ()
 Returns a detailed message about errors while parsing a QgsExpression.
QString displayExpression () const
bool featureByIndex (const QModelIndex &index, QgsFeature &feat)
QgsFeatureId idxToFid (const QModelIndex &index) const
QModelIndex fidToIdx (const QgsFeatureId fid) const
virtual QModelIndex mapToSource (const QModelIndex &proxyIndex) const
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
virtual QModelIndex mapToMaster (const QModelIndex &proxyIndex) const
virtual QModelIndex mapFromMaster (const QModelIndex &sourceIndex) const
virtual QItemSelection mapSelectionFromMaster (const QItemSelection &selection) const
virtual QItemSelection mapSelectionToMaster (const QItemSelection &selection) const
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual QModelIndex parent (const QModelIndex &child) const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
QModelIndex fidToIndex (QgsFeatureId fid)
QModelIndexList fidToIndexList (QgsFeatureId fid)

Member Enumeration Documentation

Enumerator:
FeatureInfoRole 
FeatureRole 

Constructor & Destructor Documentation

QgsFeatureListModel::QgsFeatureListModel ( QgsAttributeTableFilterModel sourceModel,
QObject *  parent = NULL 
)
explicit
QgsFeatureListModel::~QgsFeatureListModel ( )
virtual

Member Function Documentation

int QgsFeatureListModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
QVariant QgsFeatureListModel::data ( const QModelIndex &  index,
int  role 
) const
virtual
QString QgsFeatureListModel::displayExpression ( ) const
bool QgsFeatureListModel::featureByIndex ( const QModelIndex &  index,
QgsFeature feat 
)
QModelIndex QgsFeatureListModel::fidToIdx ( const QgsFeatureId  fid) const
QModelIndex QgsFeatureListModel::fidToIndex ( QgsFeatureId  fid)
virtual

Implements QgsFeatureModel.

QModelIndexList QgsFeatureListModel::fidToIndexList ( QgsFeatureId  fid)
Qt::ItemFlags QgsFeatureListModel::flags ( const QModelIndex &  index) const
virtual
QgsFeatureId QgsFeatureListModel::idxToFid ( const QModelIndex &  index) const
QModelIndex QgsFeatureListModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual
QgsVectorLayerCache * QgsFeatureListModel::layerCache ( )
QModelIndex QgsFeatureListModel::mapFromMaster ( const QModelIndex &  sourceIndex) const
virtual
QModelIndex QgsFeatureListModel::mapFromSource ( const QModelIndex &  sourceIndex) const
virtual
QItemSelection QgsFeatureListModel::mapSelectionFromMaster ( const QItemSelection &  selection) const
virtual
QItemSelection QgsFeatureListModel::mapSelectionToMaster ( const QItemSelection &  selection) const
virtual
QModelIndex QgsFeatureListModel::mapToMaster ( const QModelIndex &  proxyIndex) const
virtual
QModelIndex QgsFeatureListModel::mapToSource ( const QModelIndex &  proxyIndex) const
virtual
QgsAttributeTableModel * QgsFeatureListModel::masterModel ( )
void QgsFeatureListModel::onBeginInsertRows ( const QModelIndex &  parent,
int  first,
int  last 
)
slot
void QgsFeatureListModel::onBeginRemoveRows ( const QModelIndex &  parent,
int  first,
int  last 
)
slot
void QgsFeatureListModel::onEndInsertRows ( const QModelIndex &  parent,
int  first,
int  last 
)
slot
void QgsFeatureListModel::onEndRemoveRows ( const QModelIndex &  parent,
int  first,
int  last 
)
slot
QModelIndex QgsFeatureListModel::parent ( const QModelIndex &  child) const
virtual
QString QgsFeatureListModel::parserErrorString ( )

Returns a detailed message about errors while parsing a QgsExpression.

Returns
A message containg information about the parser error.
int QgsFeatureListModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual
bool QgsFeatureListModel::setDisplayExpression ( const QString  expression)
Parameters
expressionA QgsExpression compatible string.
Returns
true if the expression could be set, false if there was a parse error. If it fails, the old expression will still be applied. Call parserErrorString() for a meaningful error message.
void QgsFeatureListModel::setSourceModel ( QgsAttributeTableFilterModel sourceModel)
virtual

The documentation for this class was generated from the following files: