Skip to content

Commit

Permalink
allow sorting relations in project properties
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 8, 2016
1 parent 31e6d28 commit c397ae6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsrelationmanagerdialog.cpp
Expand Up @@ -40,6 +40,8 @@ void QgsRelationManagerDialog::setLayers( const QList< QgsVectorLayer* >& layers
{
addRelation( rel );
}

mRelationsTable->sortByColumn( 0, Qt::AscendingOrder );
}

void QgsRelationManagerDialog::addRelation( const QgsRelation &rel )
Expand Down
6 changes: 6 additions & 0 deletions src/ui/qgsrelationmanagerdialogbase.ui
Expand Up @@ -16,9 +16,15 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTableWidget" name="mRelationsTable">
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>Name</string>
Expand Down

0 comments on commit c397ae6

Please sign in to comment.