[license] Apply newer clang-formatting
This commit is contained in:
parent
afd3ed86d9
commit
a6cfc79a92
@ -147,9 +147,11 @@ LicensePage::retranslate()
|
|||||||
if ( !m_allLicensesOptional )
|
if ( !m_allLicensesOptional )
|
||||||
{
|
{
|
||||||
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.", "@info" )
|
"software that is subject to licensing terms.",
|
||||||
|
"@info" )
|
||||||
+ br + review );
|
+ br + review );
|
||||||
QString mustAcceptText( tr( "If you do not agree with the terms, the setup procedure cannot continue.", "@info" ) );
|
QString mustAcceptText(
|
||||||
|
tr( "If you do not agree with the terms, the setup procedure cannot continue.", "@info" ) );
|
||||||
ui->acceptCheckBox->setToolTip( mustAcceptText );
|
ui->acceptCheckBox->setToolTip( mustAcceptText );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -157,10 +159,12 @@ LicensePage::retranslate()
|
|||||||
ui->mainText->setText( tr( "This setup procedure can install proprietary "
|
ui->mainText->setText( tr( "This setup procedure can install proprietary "
|
||||||
"software that is subject to licensing terms "
|
"software that is subject to licensing terms "
|
||||||
"in order to provide additional features and enhance the user "
|
"in order to provide additional features and enhance the user "
|
||||||
"experience.", "@info" )
|
"experience.",
|
||||||
|
"@info" )
|
||||||
+ br + review );
|
+ br + review );
|
||||||
QString okAcceptText( 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.", "@info" ) );
|
"be installed, and open source alternatives will be used instead.",
|
||||||
|
"@info" ) );
|
||||||
ui->acceptCheckBox->setToolTip( okAcceptText );
|
ui->acceptCheckBox->setToolTip( okAcceptText );
|
||||||
}
|
}
|
||||||
ui->retranslateUi( this );
|
ui->retranslateUi( this );
|
||||||
|
@ -107,38 +107,44 @@ LicenseWidget::retranslateUi()
|
|||||||
case LicenseEntry::Type::Driver:
|
case LicenseEntry::Type::Driver:
|
||||||
//: %1 is an untranslatable product name, example: Creative Audigy driver
|
//: %1 is an untranslatable product name, example: Creative Audigy driver
|
||||||
productDescription = tr( "<strong>%1 driver</strong><br/>"
|
productDescription = tr( "<strong>%1 driver</strong><br/>"
|
||||||
"by %2", "@label, %1 is product name, %2 is product vendor" )
|
"by %2",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
break;
|
break;
|
||||||
case LicenseEntry::Type::GpuDriver:
|
case LicenseEntry::Type::GpuDriver:
|
||||||
//: %1 is usually a vendor name, example: Nvidia graphics driver
|
//: %1 is usually a vendor name, example: Nvidia graphics driver
|
||||||
productDescription = tr( "<strong>%1 graphics driver</strong><br/>"
|
productDescription = tr( "<strong>%1 graphics driver</strong><br/>"
|
||||||
"<font color=\"Grey\">by %2</font>", "@label, %1 is product name, %2 is product vendor" )
|
"<font color=\"Grey\">by %2</font>",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
break;
|
break;
|
||||||
case LicenseEntry::Type::BrowserPlugin:
|
case LicenseEntry::Type::BrowserPlugin:
|
||||||
productDescription = tr( "<strong>%1 browser plugin</strong><br/>"
|
productDescription = tr( "<strong>%1 browser plugin</strong><br/>"
|
||||||
"<font color=\"Grey\">by %2</font>", "@label, %1 is product name, %2 is product vendor" )
|
"<font color=\"Grey\">by %2</font>",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
break;
|
break;
|
||||||
case LicenseEntry::Type::Codec:
|
case LicenseEntry::Type::Codec:
|
||||||
productDescription = tr( "<strong>%1 codec</strong><br/>"
|
productDescription = tr( "<strong>%1 codec</strong><br/>"
|
||||||
"<font color=\"Grey\">by %2</font>", "@label, %1 is product name, %2 is product vendor" )
|
"<font color=\"Grey\">by %2</font>",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
break;
|
break;
|
||||||
case LicenseEntry::Type::Package:
|
case LicenseEntry::Type::Package:
|
||||||
productDescription = tr( "<strong>%1 package</strong><br/>"
|
productDescription = tr( "<strong>%1 package</strong><br/>"
|
||||||
"<font color=\"Grey\">by %2</font>", "@label, %1 is product name, %2 is product vendor" )
|
"<font color=\"Grey\">by %2</font>",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
break;
|
break;
|
||||||
case LicenseEntry::Type::Software:
|
case LicenseEntry::Type::Software:
|
||||||
productDescription = tr( "<strong>%1</strong><br/>"
|
productDescription = tr( "<strong>%1</strong><br/>"
|
||||||
"<font color=\"Grey\">by %2</font>", "@label, %1 is product name, %2 is product vendor" )
|
"<font color=\"Grey\">by %2</font>",
|
||||||
|
"@label, %1 is product name, %2 is product vendor" )
|
||||||
.arg( m_entry.m_prettyName )
|
.arg( m_entry.m_prettyName )
|
||||||
.arg( m_entry.m_prettyVendor );
|
.arg( m_entry.m_prettyVendor );
|
||||||
}
|
}
|
||||||
@ -183,7 +189,8 @@ LicenseWidget::updateExpandToolTip()
|
|||||||
{
|
{
|
||||||
if ( m_entry.isLocal() )
|
if ( m_entry.isLocal() )
|
||||||
{
|
{
|
||||||
m_viewLicenseButton->setText( m_isExpanded ? tr( "Hide the license text", "@tooltip" ) : tr( "Show the license text", "@tooltip" ) );
|
m_viewLicenseButton->setText( m_isExpanded ? tr( "Hide the license text", "@tooltip" )
|
||||||
|
: tr( "Show the license text", "@tooltip" ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user