[TD] TaskCenterLine add missing unit initialization
next try because PR #3275 cannot be merged.
This commit is contained in:
@@ -173,6 +173,8 @@ void TaskCenterLine::setUiPrimary()
|
||||
ui->dsbWeight->setValue(getCenterWidth());
|
||||
ui->cboxStyle->setCurrentIndex(getCenterStyle() - 1);
|
||||
|
||||
ui->qsbVertShift->setUnit(Base::Unit::Length);
|
||||
ui->qsbHorizShift->setUnit(Base::Unit::Length);
|
||||
Base::Quantity qVal;
|
||||
qVal.setUnit(Base::Unit::Length);
|
||||
qVal.setValue(getExtendBy());
|
||||
@@ -305,7 +307,7 @@ void TaskCenterLine::onColorChanged()
|
||||
|
||||
void TaskCenterLine::onWeightChanged()
|
||||
{
|
||||
m_cl->m_format.m_weight = ui->dsbWeight->value();
|
||||
m_cl->m_format.m_weight = ui->dsbWeight->value().getValue();
|
||||
m_partFeat->recomputeFeature();
|
||||
}
|
||||
|
||||
@@ -355,7 +357,7 @@ void TaskCenterLine::createCenterLine(void)
|
||||
App::Color ac;
|
||||
ac.setValue<QColor>(ui->cpLineColor->color());
|
||||
cl->m_format.m_color = ac;
|
||||
cl->m_format.m_weight = ui->dsbWeight->value();
|
||||
cl->m_format.m_weight = ui->dsbWeight->value().getValue();
|
||||
cl->m_format.m_style = ui->cboxStyle->currentIndex() + 1; //Qt Styles start at 0:NoLine
|
||||
cl->m_format.m_visible = true;
|
||||
m_partFeat->addCenterLine(cl);
|
||||
@@ -373,7 +375,7 @@ void TaskCenterLine::updateCenterLine(void)
|
||||
// Base::Console().Message("TCL::updateCenterLine()\n");
|
||||
Gui::Command::openCommand("Edit CenterLine");
|
||||
m_cl->m_format.m_color.setValue<QColor>(ui->cpLineColor->color() );
|
||||
m_cl->m_format.m_weight = ui->dsbWeight->value();
|
||||
m_cl->m_format.m_weight = ui->dsbWeight->value().getValue();
|
||||
m_cl->m_format.m_style = ui->cboxStyle->currentIndex() + 1;
|
||||
m_cl->m_format.m_visible = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user