When a sufficiently long crs filter string is entered, auto expand all groups

Makes it much less annoying to find a crs by string!
This commit is contained in:
Nyall Dawson 2024-12-12 09:39:52 +10:00
parent ae92a28ae5
commit 55a5986687

View File

@ -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 );