mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[keyboard] Replace own copy of status by the one from Config
This commit is contained in:
parent
acb5190217
commit
14c079d1d6
4 changed files with 1 additions and 22 deletions
|
@ -92,23 +92,6 @@ KeyboardPage::~KeyboardPage()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
QString
|
||||
KeyboardPage::prettyStatus() const
|
||||
{
|
||||
QString status;
|
||||
status += tr( "Set keyboard model to %1.<br/>" ).arg( ui->comboBoxModel->currentText() );
|
||||
|
||||
QString layout = ui->listLayout->currentIndex().data().toString();
|
||||
QString variant = ui->listVariant->currentItem() ? ui->listVariant->currentItem()->text() : QString( "<default>" );
|
||||
status += tr( "Set keyboard layout to %1/%2." ).arg( layout, variant );
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
KeyboardPage::createJobs( const QString& xOrgConfFileName,
|
||||
const QString& convertedKeymapPath,
|
||||
|
|
|
@ -36,8 +36,6 @@ public:
|
|||
explicit KeyboardPage( QWidget* parent = nullptr );
|
||||
~KeyboardPage() override;
|
||||
|
||||
QString prettyStatus() const;
|
||||
|
||||
Calamares::JobList
|
||||
createJobs( const QString& xOrgConfFileName, const QString& convertedKeymapPath, bool writeEtcDefaultKeyboard );
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ KeyboardViewStep::prettyName() const
|
|||
QString
|
||||
KeyboardViewStep::prettyStatus() const
|
||||
{
|
||||
return m_prettyStatus;
|
||||
return m_config->prettyStatus();
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,7 +105,6 @@ void
|
|||
KeyboardViewStep::onLeave()
|
||||
{
|
||||
m_widget->finalize();
|
||||
m_prettyStatus = m_widget->prettyStatus();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ private:
|
|||
Config* m_config;
|
||||
KeyboardPage* m_widget;
|
||||
bool m_nextEnabled;
|
||||
QString m_prettyStatus;
|
||||
};
|
||||
|
||||
CALAMARES_PLUGIN_FACTORY_DECLARATION( KeyboardViewStepFactory )
|
||||
|
|
Loading…
Add table
Reference in a new issue