Skip to content
Permalink
Browse files

update QgsAttributeTableFilterModel sip bindings

  • Loading branch information
jef-n committed Jun 23, 2016
1 parent 4b00182 commit 92bfcd48024e2277a6d60db4250d11d96787d2fc
Showing with 18 additions and 3 deletions.
  1. +18 −3 python/gui/attributetable/qgsattributetablefiltermodel.sip
@@ -127,11 +127,18 @@ class QgsAttributeTableFilterModel: QSortFilterProxyModel, QgsFeatureModel
QgsFeatureId rowToId( const QModelIndex& row );

QModelIndex fidToIndex( QgsFeatureId fid );

QModelIndexList fidToIndexList( QgsFeatureId fid );

virtual QModelIndex mapToMaster( const QModelIndex &proxyIndex ) const;

virtual QModelIndex mapFromMaster( const QModelIndex &sourceIndex ) const;
QModelIndex mapFromMaster( const QModelIndex& sourceIndex ) const;

virtual QModelIndex mapToSource( const QModelIndex& proxyIndex ) const;

virtual QModelIndex mapFromSource( const QModelIndex& sourceIndex ) const;

virtual Qt::ItemFlags flags( const QModelIndex &index ) const;

/**
* Sort by the given column using the given order.
@@ -146,8 +153,8 @@ class QgsAttributeTableFilterModel: QSortFilterProxyModel, QgsFeatureModel
* Sort by the given expression using the given order.
* Prefetches all the data from the layer to speed up sorting.
*
* @param column The expression which should be used for sorting
* @param order The order ( Qt::AscendingOrder or Qt::DescendingOrder )
* @param expression The expression which should be used for sorting
* @param order The order ( Qt::AscendingOrder or Qt::DescendingOrder )
*/
void sort( QString expression, Qt::SortOrder order = Qt::AscendingOrder );

@@ -178,6 +185,14 @@ class QgsAttributeTableFilterModel: QSortFilterProxyModel, QgsFeatureModel
*/
void setAttributeTableConfig( const QgsAttributeTableConfig& config );

signals:
/**
* Is emitted whenever the sort column is changed
* @param column The sort column
* @param order The sort order
*/
void sortColumnChanged( int column, Qt::SortOrder order );

protected:
/**
* Returns true if the source row will be accepted

1 comment on commit 92bfcd4

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn commented on 92bfcd4 Jun 24, 2016

Sorry

Please sign in to comment.
You can’t perform that action at this time.