Skip to content

Commit

Permalink
[WFS provider UI] Sort title column by ascending order (fixes qgis#55693
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rouault committed Jan 23, 2024
1 parent dfc6a88 commit 5f3aa3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/wfs/qgswfssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ QgsWFSSourceSelect::QgsWFSSourceSelect( QWidget *parent, Qt::WindowFlags fl, Qgs
mModelProxy->setSortCaseSensitivity( Qt::CaseInsensitive );
treeView->setModel( mModelProxy );

treeView->sortByColumn( MODEL_IDX_TITLE, Qt::AscendingOrder );

connect( treeView, &QAbstractItemView::doubleClicked, this, &QgsWFSSourceSelect::treeWidgetItemDoubleClicked );
connect( treeView->selectionModel(), &QItemSelectionModel::currentRowChanged, this, &QgsWFSSourceSelect::treeWidgetCurrentRowChanged );
}
Expand Down

0 comments on commit 5f3aa3b

Please sign in to comment.