@ -98,21 +98,14 @@ LicensePage::LicensePage( QWidget* parent )
{
ui - > setupUi ( this ) ;
ui - > verticalLayout - > insertSpacing ( 1 , CalamaresUtils : : defaultFontHeight ( ) ) ;
// ui->verticalLayout->insertSpacing( 1, CalamaresUtils::defaultFontHeight() );
CalamaresUtils : : unmarginLayout ( ui - > verticalLayout ) ;
ui - > mainText - > setAlignment ( Qt : : AlignCenter ) ;
ui - > mainText - > setWordWrap ( true ) ;
ui - > mainText - > setSizePolicy ( QSizePolicy : : Expanding , QSizePolicy : : Minimum ) ;
ui - > additionalText - > setWordWrap ( true ) ;
ui - > verticalLayout - > insertSpacing ( 4 , CalamaresUtils : : defaultFontHeight ( ) / 2 ) ;
ui - > verticalLayout - > setContentsMargins ( CalamaresUtils : : defaultFontHeight ( ) ,
CalamaresUtils : : defaultFontHeight ( ) * 3 ,
CalamaresUtils : : defaultFontHeight ( ) ,
CalamaresUtils : : defaultFontHeight ( ) ) ;
ui - > acceptFrame - > setFrameStyle ( QFrame : : NoFrame | QFrame : : Plain ) ;
ui - > acceptFrame - > setStyleSheet ( " #acceptFrame { border: 1px solid red; "
" background-color: #fff6f6; "
@ -153,22 +146,19 @@ LicensePage::retranslate()
{
ui - > acceptCheckBox - > setText ( tr ( " I accept the terms and conditions above. " ) ) ;
QString header = tr ( " <h1>License Agreement</h1> " ) ;
QString review = tr ( " Please review the End User License Agreements (EULAs). " ) ;
const auto br = QStringLiteral ( " <br/> " ) ;
if ( ! m_allLicensesOptional )
{
ui - > mainText - > setText ( header
+ tr ( " This setup procedure will install proprietary "
ui - > mainText - > setText ( tr ( " This setup procedure will install proprietary "
" software that is subject to licensing terms. " )
+ br + review ) ;
ui - > additionalText - > setText ( tr ( " If you do not agree with the terms, the setup procedure cannot continue. " ) ) ;
}
else
{
ui - > mainText - > setText ( header
+ tr ( " This setup procedure can install proprietary "
ui - > mainText - > setText ( tr ( " This setup procedure can install proprietary "
" software that is subject to licensing terms "
" in order to provide additional features and enhance the user "
" experience. " )