+ 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:
parent
bdb203bf9c
commit
6ec6ed601e
|
@ -67,9 +67,7 @@ TaskFilletParameters::TaskFilletParameters(ViewProviderFillet *FilletView,QWidge
|
|||
ui->doubleSpinBox->setMaximum(INT_MAX);
|
||||
ui->doubleSpinBox->setValue(r);
|
||||
ui->doubleSpinBox->selectAll();
|
||||
|
||||
|
||||
setFocus ();
|
||||
QMetaObject::invokeMethod(ui->doubleSpinBox, "setFocus", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void TaskFilletParameters::onLengthChanged(double len)
|
||||
|
|
|
@ -67,6 +67,7 @@ TaskPocketParameters::TaskPocketParameters(ViewProviderPocket *PocketView,QWidge
|
|||
ui->doubleSpinBox->setMaximum(INT_MAX);
|
||||
ui->doubleSpinBox->setValue(l);
|
||||
ui->doubleSpinBox->selectAll();
|
||||
QMetaObject::invokeMethod(ui->doubleSpinBox, "setFocus", Qt::QueuedConnection);
|
||||
|
||||
//// check if the sketch has support
|
||||
//Sketcher::SketchObject *pcSketch;
|
||||
|
@ -78,8 +79,6 @@ TaskPocketParameters::TaskPocketParameters(ViewProviderPocket *PocketView,QWidge
|
|||
// else
|
||||
// ui->checkBoxReversed->setChecked(reversed);
|
||||
//}
|
||||
|
||||
setFocus ();
|
||||
}
|
||||
|
||||
void TaskPocketParameters::onLengthChanged(double len)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user