Skip to content

Commit

Permalink
Add a brute force try to standardize options margins...
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 5, 2020
1 parent 3db9e52 commit aa5a183
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -187,6 +187,15 @@ void QgsOptionsDialogBase::restoreOptionsBaseUi( const QString &title )

// get rid of annoying outer focus rect on Mac
mOptListWidget->setAttribute( Qt::WA_MacShowFocusRect, false );

// brute force approach to try to standardize page margins!
for ( int i = 0; i < mOptStackedWidget->count(); ++i )
{
if ( QLayout *l = mOptStackedWidget->widget( i )->layout() )
{
l->setContentsMargins( 0, 0, 0, 0 );
}
}
}

void QgsOptionsDialogBase::restoreLastPage()
Expand Down

0 comments on commit aa5a183

Please sign in to comment.