Skip to content
Permalink
Browse files

Add a brute force try to standardize options margins...

  • Loading branch information
nyalldawson committed Oct 5, 2020
1 parent 3db9e52 commit aa5a1834f904c3fc52bd20b9dbba381eeb1ef26e
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/gui/qgsoptionsdialogbase.cpp
@@ -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()

0 comments on commit aa5a183

Please sign in to comment.
You can’t perform that action at this time.