[locale] Add regions & zones models to Config

- The models are constant pointers, even if their contents aren't.
- Make the top-level (region) model point to the global TZ list.
This commit is contained in:
Adriaan de Groot 2020-07-20 16:13:08 +02:00
parent 51b7ec875f
commit 88d1d255f6
2 changed files with 16 additions and 0 deletions

View file

@ -142,6 +142,9 @@ loadLocales( const QString& localeGenPath )
Config::Config( QObject* parent )
: QObject( parent )
, m_regionModel( std::make_unique< CalamaresUtils::Locale::CStringListModel >(
CalamaresUtils::Locale::TZRegion::fromZoneTab() ) )
, m_zonesModel( std::make_unique< CalamaresUtils::Locale::CStringListModel >() )
{
}