mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
[locale] Add prettyStatus to Config
- this is present in the previous config, and helps make the modules consistent by returning prettyStatus in both ViewSteps.
This commit is contained in:
parent
07c096673d
commit
a080e47f4b
4 changed files with 21 additions and 4 deletions
|
@ -199,6 +199,11 @@ Config::Config( QObject* parent )
|
|||
{ "set-timezone", location->region() + '/' + location->zone() } );
|
||||
}
|
||||
} );
|
||||
|
||||
auto prettyStatusNotify = [&]() { emit prettyStatusChanged( prettyStatus() ); };
|
||||
connect( this, &Config::currentLanguageStatusChanged, prettyStatusNotify );
|
||||
connect( this, &Config::currentLCStatusChanged, prettyStatusNotify );
|
||||
connect( this, &Config::currentLocationStatusChanged, prettyStatusNotify );
|
||||
}
|
||||
|
||||
Config::~Config() {}
|
||||
|
@ -351,6 +356,13 @@ Config::currentLCStatus() const
|
|||
.arg( localeLabel( m_selectedLocaleConfiguration.lc_numeric ) );
|
||||
}
|
||||
|
||||
QString
|
||||
Config::prettyStatus() const
|
||||
{
|
||||
QStringList l { currentLocationStatus(), currentLanguageStatus(), currentLCStatus() };
|
||||
return l.join( QStringLiteral( "<br/>" ) );
|
||||
}
|
||||
|
||||
static inline void
|
||||
getLocaleGenLines( const QVariantMap& configurationMap, QStringList& localeGenLines )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue