[netinstall] Support retranslation in the Config object

This commit is contained in:
Adriaan de Groot 2021-02-09 11:06:59 +01:00
parent 335ccbc149
commit ca1ae6fd1d
2 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,7 @@
#include "network/Manager.h"
#include "utils/Logger.h"
#include "utils/RAII.h"
#include "utils/Retranslator.h"
#include "utils/Variant.h"
#include "utils/Yaml.h"
@ -24,11 +25,20 @@
Config::Config( QObject* parent )
: QObject( parent )
, m_model( new PackageModel( this ) )
, m_model( new PackageModel( this ) ) { CALAMARES_RETRANSLATE_SLOT( &Config::retranslate ) }
Config::~Config()
{
}
Config::~Config() {}
void
Config::retranslate()
{
emit statusChanged( status() );
emit sidebarLabelChanged( sidebarLabel() );
emit titleLabelChanged( titleLabel() );
}
QString
Config::status() const

View File

@ -82,6 +82,7 @@ signals:
private slots:
void receivedGroupData(); ///< From async-loading group data
void retranslate();
private:
CalamaresUtils::Locale::TranslatedString* m_sidebarLabel = nullptr; // As it appears in the sidebar