The field Created was useless. Moved data about date of creation to a checkbox.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-26 12:48:55 +03:00
parent 23d9898154
commit 32df298cc3
2 changed files with 94 additions and 116 deletions

View File

@ -171,7 +171,8 @@ DialogPatternProperties::DialogPatternProperties(const QString &filePath, VPatte
ui->lineEditPatternNumber->setText(doc->GetPatternNumber()); ui->lineEditPatternNumber->setText(doc->GetPatternNumber());
ui->lineEditCompanyName->setText(doc->GetCompanyName()); ui->lineEditCompanyName->setText(doc->GetCompanyName());
ui->lineEditCustomerName->setText(doc->GetCustomerName()); ui->lineEditCustomerName->setText(doc->GetCustomerName());
ui->labelCreationDate->setText(QDate::currentDate().toString(Qt::SystemLocaleLongDate)); ui->checkBoxShowDate->setText(ui->checkBoxShowDate->text()
.arg(QDate::currentDate().toString(Qt::SystemLocaleLongDate)));
ui->lineEditSize->setText(doc->GetPatternSize()); ui->lineEditSize->setText(doc->GetPatternSize());
const QString plSize = QLatin1String("%") + qApp->TrVars()->PlaceholderToUser(pl_size) + QLatin1String("%"); const QString plSize = QLatin1String("%") + qApp->TrVars()->PlaceholderToUser(pl_size) + QLatin1String("%");

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>757</width> <width>727</width>
<height>692</height> <height>649</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -1047,119 +1047,96 @@
<attribute name="title"> <attribute name="title">
<string>General info</string> <string>General info</string>
</attribute> </attribute>
<widget class="QWidget" name="formLayoutWidget"> <layout class="QVBoxLayout" name="verticalLayout_12">
<property name="geometry"> <item>
<rect> <layout class="QFormLayout" name="formLayout_2">
<x>10</x> <item row="0" column="0">
<y>10</y> <widget class="QLabel" name="label_6">
<width>401</width> <property name="text">
<height>252</height> <string>Pattern name:</string>
</rect> </property>
</property> </widget>
<layout class="QFormLayout" name="formLayout"> </item>
<property name="fieldGrowthPolicy"> <item row="0" column="1">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum> <widget class="QLineEdit" name="lineEditPatternName">
</property> <property name="maxLength">
<item row="2" column="0"> <number>30</number>
<widget class="QLabel" name="label_6"> </property>
<property name="text"> </widget>
<string>Pattern name:</string> </item>
</property> <item row="1" column="0">
</widget> <widget class="QLabel" name="label_7">
</item> <property name="text">
<item row="2" column="1"> <string>Pattern number:</string>
<widget class="QLineEdit" name="lineEditPatternName"> </property>
<property name="maxLength"> </widget>
<number>30</number> </item>
</property> <item row="1" column="1">
</widget> <widget class="QLineEdit" name="lineEditPatternNumber">
</item> <property name="maxLength">
<item row="3" column="0"> <number>30</number>
<widget class="QLabel" name="label_7"> </property>
<property name="text"> </widget>
<string>Pattern number:</string> </item>
</property> <item row="2" column="0">
</widget> <widget class="QLabel" name="label_8">
</item> <property name="text">
<item row="3" column="1"> <string>Company/Designer name:</string>
<widget class="QLineEdit" name="lineEditPatternNumber"> </property>
<property name="maxLength"> </widget>
<number>30</number> </item>
</property> <item row="2" column="1">
</widget> <widget class="QLineEdit" name="lineEditCompanyName">
</item> <property name="maxLength">
<item row="4" column="0"> <number>30</number>
<widget class="QLabel" name="label_8"> </property>
<property name="text"> </widget>
<string>Company/Designer name:</string> </item>
</property> <item row="3" column="0">
</widget> <widget class="QLabel" name="label_10">
</item> <property name="text">
<item row="4" column="1"> <string>Customer name:</string>
<widget class="QLineEdit" name="lineEditCompanyName"> </property>
<property name="maxLength"> </widget>
<number>30</number> </item>
</property> <item row="3" column="1">
</widget> <widget class="QLineEdit" name="lineEditCustomerName">
</item> <property name="maxLength">
<item row="5" column="0"> <number>30</number>
<widget class="QLabel" name="label_10"> </property>
<property name="text"> </widget>
<string>Customer name:</string> </item>
</property> <item row="4" column="0">
</widget> <widget class="QLabel" name="label_12">
</item> <property name="text">
<item row="5" column="1"> <string>Pattern size:</string>
<widget class="QLineEdit" name="lineEditCustomerName"> </property>
<property name="maxLength"> </widget>
<number>30</number> </item>
</property> <item row="4" column="1">
</widget> <widget class="QLineEdit" name="lineEditSize">
</item> <property name="maxLength">
<item row="7" column="1"> <number>40</number>
<widget class="QLabel" name="labelCreationDate"> </property>
<property name="text"> </widget>
<string/> </item>
</property> </layout>
</widget> </item>
</item> <item>
<item row="7" column="0"> <widget class="QCheckBox" name="checkBoxShowDate">
<widget class="QLabel" name="label_11"> <property name="text">
<property name="text"> <string>Show date of layout creation (%1)</string>
<string>Created:</string> </property>
</property> </widget>
</widget> </item>
</item> <item>
<item row="6" column="0"> <widget class="QCheckBox" name="checkBoxShowMeasurements">
<widget class="QLabel" name="label_12"> <property name="text">
<property name="text"> <string>Show measurements file</string>
<string>Pattern size:</string> </property>
</property> </widget>
</widget> </item>
</item> </layout>
<item row="6" column="1">
<widget class="QLineEdit" name="lineEditSize">
<property name="maxLength">
<number>40</number>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QCheckBox" name="checkBoxShowMeasurements">
<property name="text">
<string>Show measurements</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QCheckBox" name="checkBoxShowDate">
<property name="text">
<string>Show date of creation</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
</widget> </widget>
</item> </item>