From e510c829e1fe68379cc413bab75b4d5f6a2b179e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 29 Apr 2019 10:16:59 -0400 Subject: [PATCH] [oemid] Add form explanation --- src/modules/oemid/OEMPage.ui | 44 +++++++++++++++++++++++++------ src/modules/oemid/OEMViewStep.cpp | 9 +++++++ 2 files changed, 45 insertions(+), 8 deletions(-) diff --git a/src/modules/oemid/OEMPage.ui b/src/modules/oemid/OEMPage.ui index d84984f0a..8a6d1c1fa 100644 --- a/src/modules/oemid/OEMPage.ui +++ b/src/modules/oemid/OEMPage.ui @@ -6,34 +6,62 @@ 0 0 - 400 + 592 300 + + + 1 + 0 + + - Form + OEMPage -1 9 - 391 - 281 + 601 + 271 - - + + <html><head/><body><p>Enter a batch-identifier here. This will be stored in the target system.</p></body></html> + + batch-identifier + - + - Batch: + Ba&tch: + + + batchIdentifier + + + + + + + <html><head/><body><h1>OEM Configuration</h1><p>Calamares will use OEM settings while configuring the target system.</p></body></html> + + + Qt::RichText + + + Qt::AlignCenter + + + true diff --git a/src/modules/oemid/OEMViewStep.cpp b/src/modules/oemid/OEMViewStep.cpp index 7af97a3a3..3cec79361 100644 --- a/src/modules/oemid/OEMViewStep.cpp +++ b/src/modules/oemid/OEMViewStep.cpp @@ -20,6 +20,7 @@ #include "ui_OEMPage.h" +#include "utils/Retranslator.h" #include "utils/Variant.h" #include @@ -34,6 +35,10 @@ public: , m_ui( new Ui_OEMPage() ) { m_ui->setupUi( this ); + + CALAMARES_RETRANSLATE( + m_ui->retranslateUi( this ); + ) } Ui_OEMPage* m_ui; @@ -92,11 +97,15 @@ void OEMViewStep::onActivate() if ( !m_visited && m_widget ) m_widget->m_ui->batchIdentifier->setText( m_user_batchIdentifier ); m_visited = true; + + ViewStep::onActivate(); } void OEMViewStep::onLeave() { m_user_batchIdentifier = m_widget->m_ui->batchIdentifier->text(); + + ViewStep::onLeave(); } QString OEMViewStep::prettyName() const