[license] Move a less-useful message to tooltip
- the message about setup continuing can be a tooltip
This commit is contained in:
parent
c220220563
commit
59ea0417fc
@ -110,8 +110,6 @@ LicensePage::LicensePage( QWidget* parent )
|
|||||||
ui->mainText->setWordWrap( true );
|
ui->mainText->setWordWrap( true );
|
||||||
ui->mainText->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
|
ui->mainText->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
|
||||||
|
|
||||||
ui->additionalText->setWordWrap( true );
|
|
||||||
|
|
||||||
ui->acceptFrame->setFrameStyle( QFrame::NoFrame | QFrame::Plain );
|
ui->acceptFrame->setFrameStyle( QFrame::NoFrame | QFrame::Plain );
|
||||||
ui->acceptFrame->setStyleSheet( mustAccept );
|
ui->acceptFrame->setStyleSheet( mustAccept );
|
||||||
ui->acceptFrame->layout()->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
ui->acceptFrame->layout()->setMargin( CalamaresUtils::defaultFontHeight() / 2 );
|
||||||
@ -157,7 +155,8 @@ LicensePage::retranslate()
|
|||||||
ui->mainText->setText( tr( "This setup procedure will install proprietary "
|
ui->mainText->setText( tr( "This setup procedure will install proprietary "
|
||||||
"software that is subject to licensing terms." )
|
"software that is subject to licensing terms." )
|
||||||
+ br + review );
|
+ br + review );
|
||||||
ui->additionalText->setText( tr( "If you do not agree with the terms, the setup procedure cannot continue." ) );
|
QString mustAcceptText( tr( "If you do not agree with the terms, the setup procedure cannot continue." ) );
|
||||||
|
ui->acceptCheckBox->setToolTip( mustAcceptText );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -166,8 +165,9 @@ LicensePage::retranslate()
|
|||||||
"in order to provide additional features and enhance the user "
|
"in order to provide additional features and enhance the user "
|
||||||
"experience." )
|
"experience." )
|
||||||
+ br + review );
|
+ br + review );
|
||||||
ui->additionalText->setText( tr( "If you do not agree with the terms, proprietary software will not "
|
QString okAcceptText( tr( "If you do not agree with the terms, proprietary software will not "
|
||||||
"be installed, and open source alternatives will be used instead." ) );
|
"be installed, and open source alternatives will be used instead." ) );
|
||||||
|
ui->acceptCheckBox->setToolTip( okAcceptText );
|
||||||
}
|
}
|
||||||
ui->retranslateUi( this );
|
ui->retranslateUi( this );
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,0,0,0,0">
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0,0,0,0">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="titleLabel">
|
<widget class="QLabel" name="titleLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -87,7 +87,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>765</width>
|
<width>765</width>
|
||||||
<height>81</height>
|
<height>89</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="licenseEntriesLayout"/>
|
<layout class="QVBoxLayout" name="licenseEntriesLayout"/>
|
||||||
@ -107,22 +107,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="additionalText">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="toolTip">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true"><additionalText></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
|
Loading…
Reference in New Issue
Block a user