[netinstall] Support retranslation in the Config object
This commit is contained in:
parent
335ccbc149
commit
ca1ae6fd1d
@ -17,6 +17,7 @@
|
|||||||
#include "network/Manager.h"
|
#include "network/Manager.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "utils/RAII.h"
|
#include "utils/RAII.h"
|
||||||
|
#include "utils/Retranslator.h"
|
||||||
#include "utils/Variant.h"
|
#include "utils/Variant.h"
|
||||||
#include "utils/Yaml.h"
|
#include "utils/Yaml.h"
|
||||||
|
|
||||||
@ -24,11 +25,20 @@
|
|||||||
|
|
||||||
Config::Config( QObject* parent )
|
Config::Config( QObject* parent )
|
||||||
: 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
|
QString
|
||||||
Config::status() const
|
Config::status() const
|
||||||
|
@ -82,6 +82,7 @@ signals:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void receivedGroupData(); ///< From async-loading group data
|
void receivedGroupData(); ///< From async-loading group data
|
||||||
|
void retranslate();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CalamaresUtils::Locale::TranslatedString* m_sidebarLabel = nullptr; // As it appears in the sidebar
|
CalamaresUtils::Locale::TranslatedString* m_sidebarLabel = nullptr; // As it appears in the sidebar
|
||||||
|
Loading…
Reference in New Issue
Block a user