From 32df298cc3670973f0c0c062b2a0d7567fd1c245 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 26 Aug 2016 12:48:55 +0300 Subject: [PATCH] The field Created was useless. Moved data about date of creation to a checkbox. --HG-- branch : develop --- .../dialogs/dialogpatternproperties.cpp | 3 +- .../dialogs/dialogpatternproperties.ui | 207 ++++++++---------- 2 files changed, 94 insertions(+), 116 deletions(-) diff --git a/src/app/valentina/dialogs/dialogpatternproperties.cpp b/src/app/valentina/dialogs/dialogpatternproperties.cpp index 89c3afcc1..31e29d4ca 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.cpp +++ b/src/app/valentina/dialogs/dialogpatternproperties.cpp @@ -171,7 +171,8 @@ DialogPatternProperties::DialogPatternProperties(const QString &filePath, VPatte ui->lineEditPatternNumber->setText(doc->GetPatternNumber()); ui->lineEditCompanyName->setText(doc->GetCompanyName()); 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()); const QString plSize = QLatin1String("%") + qApp->TrVars()->PlaceholderToUser(pl_size) + QLatin1String("%"); diff --git a/src/app/valentina/dialogs/dialogpatternproperties.ui b/src/app/valentina/dialogs/dialogpatternproperties.ui index 2ef6a2803..43970b9b2 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.ui +++ b/src/app/valentina/dialogs/dialogpatternproperties.ui @@ -6,8 +6,8 @@ 0 0 - 757 - 692 + 727 + 649 @@ -1047,119 +1047,96 @@ General info - - - - 10 - 10 - 401 - 252 - - - - - QFormLayout::AllNonFixedFieldsGrow - - - - - Pattern name: - - - - - - - 30 - - - - - - - Pattern number: - - - - - - - 30 - - - - - - - Company/Designer name: - - - - - - - 30 - - - - - - - Customer name: - - - - - - - 30 - - - - - - - - - - - - - - Created: - - - - - - - Pattern size: - - - - - - - 40 - - - - - - - Show measurements - - - - - - - Show date of creation - - - - - + + + + + + + Pattern name: + + + + + + + 30 + + + + + + + Pattern number: + + + + + + + 30 + + + + + + + Company/Designer name: + + + + + + + 30 + + + + + + + Customer name: + + + + + + + 30 + + + + + + + Pattern size: + + + + + + + 40 + + + + + + + + + Show date of layout creation (%1) + + + + + + + Show measurements file + + + +