Skip to content

Commit 92bfcd4

Browse files
committedJun 23, 2016
update QgsAttributeTableFilterModel sip bindings
1 parent 4b00182 commit 92bfcd4

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed
 

‎python/gui/attributetable/qgsattributetablefiltermodel.sip

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,18 @@ class QgsAttributeTableFilterModel: QSortFilterProxyModel, QgsFeatureModel
127127
QgsFeatureId rowToId( const QModelIndex& row );
128128

129129
QModelIndex fidToIndex( QgsFeatureId fid );
130+
130131
QModelIndexList fidToIndexList( QgsFeatureId fid );
131132

132133
virtual QModelIndex mapToMaster( const QModelIndex &proxyIndex ) const;
133134

134-
virtual QModelIndex mapFromMaster( const QModelIndex &sourceIndex ) const;
135+
QModelIndex mapFromMaster( const QModelIndex& sourceIndex ) const;
136+
137+
virtual QModelIndex mapToSource( const QModelIndex& proxyIndex ) const;
138+
139+
virtual QModelIndex mapFromSource( const QModelIndex& sourceIndex ) const;
140+
141+
virtual Qt::ItemFlags flags( const QModelIndex &index ) const;
135142

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

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

188+
signals:
189+
/**
190+
* Is emitted whenever the sort column is changed
191+
* @param column The sort column
192+
* @param order The sort order
193+
*/
194+
void sortColumnChanged( int column, Qt::SortOrder order );
195+
181196
protected:
182197
/**
183198
* Returns true if the source row will be accepted

1 commit comments

Comments
 (1)

m-kuhn commented on Jun 24, 2016

@m-kuhn
Member

Sorry

Please sign in to comment.