From ec25c6aa86eaa8f5916e3d01b46511367ea5cc44 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 12 Dec 2024 09:39:52 +1000 Subject: [PATCH] When a sufficiently long crs filter string is entered, auto expand all groups Makes it much less annoying to find a crs by string! --- src/gui/proj/qgsprojectionselectiontreewidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/proj/qgsprojectionselectiontreewidget.cpp b/src/gui/proj/qgsprojectionselectiontreewidget.cpp index 121254c9de3d..9882bb8d5636 100644 --- a/src/gui/proj/qgsprojectionselectiontreewidget.cpp +++ b/src/gui/proj/qgsprojectionselectiontreewidget.cpp @@ -88,6 +88,8 @@ QgsProjectionSelectionTreeWidget::QgsProjectionSelectionTreeWidget( QWidget *par connect( leSearch, &QgsFilterLineEdit::textChanged, this, [=]( const QString &filter ) { mCrsModel->setFilterString( filter ); mRecentCrsModel->setFilterString( filter ); + if ( filter.length() >= 3 ) + lstCoordinateSystems->expandAll(); } ); mAreaCanvas->setVisible( mShowMap );