Skip to content

Commit

Permalink
update QgsAttributeTableFilterModel sip bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 23, 2016
1 parent 4b00182 commit 92bfcd4
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions python/gui/attributetable/qgsattributetablefiltermodel.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 );

Expand Down Expand Up @@ -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
Expand Down

1 comment on commit 92bfcd4

@m-kuhn
Copy link
Member

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry

Please sign in to comment.