Skip to content

Commit

Permalink
Expand all when clearing search
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 29, 2021
1 parent 550a1d3 commit 557b92d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -180,6 +180,10 @@ void QgsOptionsDialogBase::initOptionsBase( bool restoreUi, const QString &title
{
mSearchLineEdit->setShowSearchIcon( true );
connect( mSearchLineEdit, &QgsFilterLineEdit::textChanged, this, &QgsOptionsDialogBase::searchText );
if ( mOptTreeView )
{
connect( mSearchLineEdit, &QgsFilterLineEdit::cleared, mOptTreeView, &QTreeView::expandAll );
}
}

mInit = true;
Expand Down

0 comments on commit 557b92d

Please sign in to comment.