Detail doesn't save parameter closed and seam allowance.
--HG-- branch : feature
This commit is contained in:
parent
8a2639b7aa
commit
502b66df29
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user