Skip to content

Commit

Permalink
Give QgsScrollArea the same name as its child widget. Opening a speci…
Browse files Browse the repository at this point in the history
…fic options page relies on widget's objectName
  • Loading branch information
uclaros authored and nyalldawson committed Feb 16, 2024
1 parent a75a917 commit 465b69f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsoptionsdialogbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ void QgsOptionsDialogBase::addPage( const QString &title, const QString &tooltip
QgsScrollArea *scrollArea = new QgsScrollArea();
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
scrollArea->setObjectName( widget->objectName() );
scrollArea->setWidget( widget );

if ( newPage < 0 )
Expand Down Expand Up @@ -502,6 +503,7 @@ void QgsOptionsDialogBase::insertPage( const QString &title, const QString &tool
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
scrollArea->setWidget( widget );
scrollArea->setObjectName( widget->objectName() );
mOptStackedWidget->insertWidget( page, scrollArea );
return;
}
Expand Down

0 comments on commit 465b69f

Please sign in to comment.