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);
}
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");
details[id] = detail;

View File

@ -223,7 +223,7 @@ public:
* @param id id of existing 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
* @param name name of row

View File

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