[oemid] Add form explanation
This commit is contained in:
parent
ae85381aae
commit
e510c829e1
@ -6,34 +6,62 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>592</width>
|
||||||
<height>300</height>
|
<height>300</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||||
|
<horstretch>1</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string notr="true">OEMPage</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="gridLayoutWidget">
|
<widget class="QWidget" name="gridLayoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>-1</x>
|
<x>-1</x>
|
||||||
<y>9</y>
|
<y>9</y>
|
||||||
<width>391</width>
|
<width>601</width>
|
||||||
<height>281</height>
|
<height>271</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0" columnstretch="1,3">
|
||||||
<item row="0" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QLineEdit" name="batchIdentifier">
|
<widget class="QLineEdit" name="batchIdentifier">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><html><head/><body><p>Enter a batch-identifier here. This will be stored in the target system.</p></body></html></string>
|
<string><html><head/><body><p>Enter a batch-identifier here. This will be stored in the target system.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="accessibleName">
|
||||||
|
<string notr="true">batch-identifier</string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="1" column="0" alignment="Qt::AlignRight">
|
||||||
<widget class="QLabel" name="batchIdentifier_label">
|
<widget class="QLabel" name="batchIdentifier_label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Batch:</string>
|
<string>Ba&tch:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>batchIdentifier</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><h1>OEM Configuration</h1><p>Calamares will use OEM settings while configuring the target system.</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="textFormat">
|
||||||
|
<enum>Qt::RichText</enum>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include "ui_OEMPage.h"
|
#include "ui_OEMPage.h"
|
||||||
|
|
||||||
|
#include "utils/Retranslator.h"
|
||||||
#include "utils/Variant.h"
|
#include "utils/Variant.h"
|
||||||
|
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
@ -34,6 +35,10 @@ public:
|
|||||||
, m_ui( new Ui_OEMPage() )
|
, m_ui( new Ui_OEMPage() )
|
||||||
{
|
{
|
||||||
m_ui->setupUi( this );
|
m_ui->setupUi( this );
|
||||||
|
|
||||||
|
CALAMARES_RETRANSLATE(
|
||||||
|
m_ui->retranslateUi( this );
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Ui_OEMPage* m_ui;
|
Ui_OEMPage* m_ui;
|
||||||
@ -92,11 +97,15 @@ void OEMViewStep::onActivate()
|
|||||||
if ( !m_visited && m_widget )
|
if ( !m_visited && m_widget )
|
||||||
m_widget->m_ui->batchIdentifier->setText( m_user_batchIdentifier );
|
m_widget->m_ui->batchIdentifier->setText( m_user_batchIdentifier );
|
||||||
m_visited = true;
|
m_visited = true;
|
||||||
|
|
||||||
|
ViewStep::onActivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OEMViewStep::onLeave()
|
void OEMViewStep::onLeave()
|
||||||
{
|
{
|
||||||
m_user_batchIdentifier = m_widget->m_ui->batchIdentifier->text();
|
m_user_batchIdentifier = m_widget->m_ui->batchIdentifier->text();
|
||||||
|
|
||||||
|
ViewStep::onLeave();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString OEMViewStep::prettyName() const
|
QString OEMViewStep::prettyName() const
|
||||||
|
Loading…
Reference in New Issue
Block a user