[license] Reduce margins hugely
- Move layouting code into the .ui file - Reduce margins hugely -- atop the title block, around the scroll area, etc -- so that more license is visible at once.
This commit is contained in:
parent
0b126b2c62
commit
9fa021e3c6
@ -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." )
|
||||
|
@ -16,6 +16,16 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,0,0,0,0">
|
||||
<item>
|
||||
<widget class="QLabel" name="titleLabel">
|
||||
<property name="text">
|
||||
<string><h1>License Agreement</h1></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="mainText">
|
||||
<property name="sizePolicy">
|
||||
@ -30,6 +40,12 @@
|
||||
<property name="text">
|
||||
<string notr="true"><Calamares license text></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
@ -71,7 +87,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>765</width>
|
||||
<height>86</height>
|
||||
<height>81</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="licenseEntriesLayout"/>
|
||||
|
Loading…
Reference in New Issue
Block a user