+ set focus on spin box for pocket, revolve and fillet task panel
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5217 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -68,12 +68,12 @@ TaskRevolutionParameters::TaskRevolutionParameters(ViewProviderRevolution *Revol
|
||||
Base::Vector3f Ax = pcRevolution->Axis.getValue();
|
||||
|
||||
ui->doubleSpinBox->setValue(l);
|
||||
if(Ax.y > 0)
|
||||
ui->doubleSpinBox->selectAll();
|
||||
QMetaObject::invokeMethod(ui->doubleSpinBox, "setFocus", Qt::QueuedConnection);
|
||||
if (Ax.y > 0)
|
||||
ui->axis->setCurrentIndex(0);
|
||||
else
|
||||
ui->axis->setCurrentIndex(1);
|
||||
|
||||
setFocus ();
|
||||
}
|
||||
|
||||
void TaskRevolutionParameters::onAngleChanged(double len)
|
||||
|
||||
Reference in New Issue
Block a user