[tracking] Chase Branding API change

- While here, apply coding style
This commit is contained in:
Adriaan de Groot 2020-05-04 12:48:32 +02:00
parent c0a3614f09
commit 0046c3f161
2 changed files with 8 additions and 11 deletions

View File

@ -32,9 +32,7 @@ TrackingInstallJob::TrackingInstallJob( const QString& url )
{ {
} }
TrackingInstallJob::~TrackingInstallJob() TrackingInstallJob::~TrackingInstallJob() { }
{
}
QString QString
TrackingInstallJob::prettyName() const TrackingInstallJob::prettyName() const

View File

@ -36,24 +36,23 @@ TrackingPage::TrackingPage( QWidget* parent )
: QWidget( parent ) : QWidget( parent )
, ui( new Ui::TrackingPage ) , ui( new Ui::TrackingPage )
{ {
using StringEntry = Calamares::Branding::StringEntry;
ui->setupUi( this ); ui->setupUi( this );
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
ui->retranslateUi( this ); ui->generalExplanation->setText( QString product = Calamares::Branding::instance()->shortProductName(); ui->retranslateUi( this );
ui->generalExplanation->setText(
tr( "Install tracking helps %1 to see how many users they have, what hardware they install %1 to and (with " tr( "Install tracking helps %1 to see how many users they have, what hardware they install %1 to and (with "
"the last two options below), get continuous information about preferred applications. To see what " "the last two options below), get continuous information about preferred applications. To see what "
"will be sent, please click the help icon next to each area." ) "will be sent, please click the help icon next to each area." )
.arg( *StringEntry::ShortProductName ) ); .arg( product ) );
ui->installExplanation->setText( ui->installExplanation->setText(
tr( "By selecting this you will send information about your installation and hardware. This information " tr( "By selecting this you will send information about your installation and hardware. This information "
"will <b>only be sent once</b> after the installation finishes." ) ); "will <b>only be sent once</b> after the installation finishes." ) );
ui->machineExplanation->setText( tr( "By selecting this you will <b>periodically</b> send information about " ui->machineExplanation->setText( tr( "By selecting this you will <b>periodically</b> send information about "
"your installation, hardware and applications, to %1." ) "your installation, hardware and applications, to %1." )
.arg( *StringEntry::ShortProductName ) ); .arg( product ) );
ui->userExplanation->setText( tr( "By selecting this you will <b>regularly</b> send information about your " ui->userExplanation->setText( tr( "By selecting this you will <b>regularly</b> send information about your "
"installation, hardware, applications and usage patterns, to %1." ) "installation, hardware, applications and usage patterns, to %1." )
.arg( *StringEntry::ShortProductName ) ); ) .arg( product ) ); )
QButtonGroup* group = new QButtonGroup( this ); QButtonGroup* group = new QButtonGroup( this );
group->setExclusive( true ); group->setExclusive( true );