Detail doesn't save parameter closed and seam allowance.

--HG--
branch : feature
This commit is contained in:
dismine 2014-01-12 21:53:15 +02:00
parent 8a2639b7aa
commit 502b66df29
3 changed files with 4 additions and 2 deletions

View file

@ -774,7 +774,7 @@ void VContainer::UpdateGObject(qint64 id, VGObject* obj)
UpdateObject(gObjects, id, obj); UpdateObject(gObjects, id, obj);
} }
void VContainer::UpdateDetail(qint64 id, VDetail detail) void VContainer::UpdateDetail(qint64 id, const VDetail &detail)
{ {
Q_ASSERT_X(id > 0, Q_FUNC_INFO, "id <= 0"); Q_ASSERT_X(id > 0, Q_FUNC_INFO, "id <= 0");
details[id] = detail; details[id] = detail;

View file

@ -223,7 +223,7 @@ public:
* @param id id of existing detail * @param id id of existing detail
* @param detail detail * @param detail detail
*/ */
void UpdateDetail(qint64 id, VDetail detail); void UpdateDetail(qint64 id, const VDetail &detail);
/** /**
* @brief UpdateStandartTableCell update standart table row by name * @brief UpdateStandartTableCell update standart table row by name
* @param name name of row * @param name name of row

View file

@ -165,6 +165,8 @@ void DialogDetail::setDetails(const VDetail &value)
ui.lineEditNameDetail->setText(details.getName()); ui.lineEditNameDetail->setText(details.getName());
ui.checkBoxSeams->setChecked(details.getSupplement()); ui.checkBoxSeams->setChecked(details.getSupplement());
ui.checkBoxClosed->setChecked(details.getClosed()); ui.checkBoxClosed->setChecked(details.getClosed());
ClickedClosed(details.getClosed());
ClickedSeams(details.getSupplement());
ui.doubleSpinBoxSeams->setValue(details.getWidth()); ui.doubleSpinBoxSeams->setValue(details.getWidth());
ui.listWidget->setCurrentRow(0); ui.listWidget->setCurrentRow(0);
ui.listWidget->setFocus(Qt::OtherFocusReason); ui.listWidget->setFocus(Qt::OtherFocusReason);