[license] Adjust to Qt 5.15 deprecations

This commit is contained in:
Adriaan de Groot 2021-09-16 12:08:14 +02:00
parent 1bd5628256
commit a6ba3dfce0

View File

@ -98,7 +98,12 @@ LicensePage::LicensePage( QWidget* parent )
CalamaresUtils::unmarginLayout( ui->verticalLayout ); CalamaresUtils::unmarginLayout( ui->verticalLayout );
ui->acceptFrame->setStyleSheet( mustAccept ); ui->acceptFrame->setStyleSheet( mustAccept );
ui->acceptFrame->layout()->setMargin( CalamaresUtils::defaultFontHeight() / 2 ); {
// The inner frame was unmargined (above), reinstate margins so all are
// the same *x* (an x-height, approximately).
const auto x = CalamaresUtils::defaultFontHeight() / 2;
ui->acceptFrame->layout()->setContentsMargins( x, x, x, x );
}
updateGlobalStorage( false ); // Have not agreed yet updateGlobalStorage( false ); // Have not agreed yet