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,121 +1047,98 @@
<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>
<width>401</width>
<height>252</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="2" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
<string>Pattern name:</string> <string>Pattern name:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="0" column="1">
<widget class="QLineEdit" name="lineEditPatternName"> <widget class="QLineEdit" name="lineEditPatternName">
<property name="maxLength"> <property name="maxLength">
<number>30</number> <number>30</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>Pattern number:</string> <string>Pattern number:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="1" column="1">
<widget class="QLineEdit" name="lineEditPatternNumber"> <widget class="QLineEdit" name="lineEditPatternNumber">
<property name="maxLength"> <property name="maxLength">
<number>30</number> <number>30</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_8"> <widget class="QLabel" name="label_8">
<property name="text"> <property name="text">
<string>Company/Designer name:</string> <string>Company/Designer name:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="2" column="1">
<widget class="QLineEdit" name="lineEditCompanyName"> <widget class="QLineEdit" name="lineEditCompanyName">
<property name="maxLength"> <property name="maxLength">
<number>30</number> <number>30</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="label_10">
<property name="text"> <property name="text">
<string>Customer name:</string> <string>Customer name:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="3" column="1">
<widget class="QLineEdit" name="lineEditCustomerName"> <widget class="QLineEdit" name="lineEditCustomerName">
<property name="maxLength"> <property name="maxLength">
<number>30</number> <number>30</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="4" column="0">
<widget class="QLabel" name="labelCreationDate">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Created:</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="label_12"> <widget class="QLabel" name="label_12">
<property name="text"> <property name="text">
<string>Pattern size:</string> <string>Pattern size:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="1"> <item row="4" column="1">
<widget class="QLineEdit" name="lineEditSize"> <widget class="QLineEdit" name="lineEditSize">
<property name="maxLength"> <property name="maxLength">
<number>40</number> <number>40</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="0"> </layout>
<widget class="QCheckBox" name="checkBoxShowMeasurements"> </item>
<item>
<widget class="QCheckBox" name="checkBoxShowDate">
<property name="text"> <property name="text">
<string>Show measurements</string> <string>Show date of layout creation (%1)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item>
<widget class="QCheckBox" name="checkBoxShowDate"> <widget class="QCheckBox" name="checkBoxShowMeasurements">
<property name="text"> <property name="text">
<string>Show date of creation</string> <string>Show measurements file</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</widget> </widget>
</widget>
</item> </item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">