Locale: refactor to update labels in one place only
This commit is contained in:
parent
6adb590f5d
commit
945a96bb51
@ -171,9 +171,7 @@ LocalePage::LocalePage( QWidget* parent )
|
|||||||
!dlg->selectedLCLocale().isEmpty() )
|
!dlg->selectedLCLocale().isEmpty() )
|
||||||
{
|
{
|
||||||
m_selectedLocaleConfiguration.lang = dlg->selectedLCLocale();
|
m_selectedLocaleConfiguration.lang = dlg->selectedLCLocale();
|
||||||
m_localeLabel->setText( tr( "The system language will be set to %1." )
|
this->updateLocaleLabels();
|
||||||
.arg( prettyLCLocale(
|
|
||||||
m_selectedLocaleConfiguration.lang ) ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dlg->deleteLater();
|
dlg->deleteLater();
|
||||||
@ -203,9 +201,7 @@ LocalePage::LocalePage( QWidget* parent )
|
|||||||
m_selectedLocaleConfiguration.lc_measurement = dlg->selectedLCLocale();
|
m_selectedLocaleConfiguration.lc_measurement = dlg->selectedLCLocale();
|
||||||
m_selectedLocaleConfiguration.lc_identification = dlg->selectedLCLocale();
|
m_selectedLocaleConfiguration.lc_identification = dlg->selectedLCLocale();
|
||||||
|
|
||||||
m_formatsLabel->setText( tr( "The numbers and dates locale will be set to %1." )
|
this->updateLocaleLabels();
|
||||||
.arg( prettyLCLocale(
|
|
||||||
m_selectedLocaleConfiguration.lc_numeric ) ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dlg->deleteLater();
|
dlg->deleteLater();
|
||||||
|
Loading…
Reference in New Issue
Block a user