[TD] improve dialogs

- DlgPrefsTechDraw3.ui: improve wording as discussed
- TaskCL2Lines.ui: morph option to QCheckBox
- TaskCenterLine.cpp: the Aligned option is not available for face mode
- TaskCenterLine.ui: use same default line style as in prefs
- TaskCenterLine.ui: correct tooltip for align option
This commit is contained in:
donovaly
2020-03-18 01:03:18 +01:00
committed by WandererFan
parent ab42bb8b4c
commit 197efb8b28
4 changed files with 18 additions and 7 deletions

View File

@@ -182,6 +182,10 @@ void TaskCenterLine::setUiPrimary()
ui->qsbExtend->setValue(qVal);
int precision = Base::UnitsApi::getDecimals();
ui->dsbRotate->setDecimals(precision);
if (m_type == 0) // if face, then aligned is not possible
ui->rbAligned->setEnabled(false);
else
ui->rbAligned->setEnabled(true);
}
void TaskCenterLine::setUiEdit()
@@ -221,6 +225,10 @@ void TaskCenterLine::setUiEdit()
ui->qsbHorizShift->setValue(qVal);
qVal.setValue(m_cl->m_extendBy);
ui->qsbExtend->setValue(qVal);
if (m_cl->m_type == 0) // if face, then aligned is not possible
ui->rbAligned->setEnabled(false);
else
ui->rbAligned->setEnabled(true);
}
//******************************************************************************
@@ -407,7 +415,7 @@ TaskCL2Lines::TaskCL2Lines(TechDrawGui::TaskCenterLine* tcl) :
{
ui->setupUi(this);
connect(ui->rbFlip, SIGNAL(toggled( bool )), this, SLOT(onFlipToggled( bool )));
connect(ui->cbFlip, SIGNAL(toggled( bool )), this, SLOT(onFlipToggled( bool )));
initUi();
}