Skip to content
Permalink
Browse files

allow sorting relations in project properties

  • Loading branch information
3nids committed Apr 8, 2016
1 parent 31e6d28 commit c397ae652e9de54fc870bdb4957938a76770e634
Showing with 8 additions and 0 deletions.
  1. +2 −0 src/app/qgsrelationmanagerdialog.cpp
  2. +6 −0 src/ui/qgsrelationmanagerdialogbase.ui
@@ -40,6 +40,8 @@ void QgsRelationManagerDialog::setLayers( const QList< QgsVectorLayer* >& layers
{
addRelation( rel );
}

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

void QgsRelationManagerDialog::addRelation( const QgsRelation &rel )
@@ -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>

0 comments on commit c397ae6

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