Skip to content

Commit c397ae6

Browse files
committed
allow sorting relations in project properties
1 parent 31e6d28 commit c397ae6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/app/qgsrelationmanagerdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ void QgsRelationManagerDialog::setLayers( const QList< QgsVectorLayer* >& layers
4040
{
4141
addRelation( rel );
4242
}
43+
44+
mRelationsTable->sortByColumn( 0, Qt::AscendingOrder );
4345
}
4446

4547
void QgsRelationManagerDialog::addRelation( const QgsRelation &rel )

src/ui/qgsrelationmanagerdialogbase.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
1616
<layout class="QVBoxLayout" name="verticalLayout">
1717
<item>
1818
<widget class="QTableWidget" name="mRelationsTable">
19+
<property name="sortingEnabled">
20+
<bool>true</bool>
21+
</property>
1922
<attribute name="horizontalHeaderStretchLastSection">
2023
<bool>true</bool>
2124
</attribute>
25+
<attribute name="verticalHeaderShowSortIndicator" stdset="0">
26+
<bool>true</bool>
27+
</attribute>
2228
<column>
2329
<property name="text">
2430
<string>Name</string>

0 commit comments

Comments
 (0)