fix(PD): initialization of thread class and fit
This commit is contained in:
committed by
Yorik van Havre
parent
96c1e86e5d
commit
78d57469af
@@ -81,6 +81,8 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole* HoleView, QWidget* pare
|
||||
ui->ThreadSize->addItem(tr(it.c_str()));
|
||||
}
|
||||
ui->ThreadSize->setCurrentIndex(pcHole->ThreadSize.getValue());
|
||||
ui->ThreadSize->setEnabled(!pcHole->Threaded.getValue() && pcHole->ThreadType.getValue() != 0L);
|
||||
|
||||
ui->ThreadClass->clear();
|
||||
cursor = pcHole->ThreadClass.getEnumVector();
|
||||
for (const auto& it : cursor) {
|
||||
@@ -91,7 +93,7 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole* HoleView, QWidget* pare
|
||||
ui->ThreadClass->setEnabled(pcHole->Threaded.getValue());
|
||||
ui->ThreadFit->setCurrentIndex(pcHole->ThreadFit.getValue());
|
||||
// Fit is only enabled (sensible) if not threaded
|
||||
ui->ThreadFit->setEnabled(!pcHole->Threaded.getValue());
|
||||
ui->ThreadFit->setEnabled(!pcHole->Threaded.getValue() && pcHole->ThreadType.getValue() != 0L);
|
||||
ui->Diameter->setMinimum(pcHole->Diameter.getMinimum());
|
||||
ui->Diameter->setValue(pcHole->Diameter.getValue());
|
||||
// Diameter is only enabled if ThreadType is None
|
||||
|
||||
Reference in New Issue
Block a user