0000506: Modifying focus when creating pad.
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5216 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
8d84eda4f9
commit
bdb203bf9c
|
@ -87,8 +87,10 @@ TaskPadParameters::TaskPadParameters(ViewProviderPad *PadView,QWidget *parent)
|
|||
}
|
||||
|
||||
ui->checkBoxReversed->setChecked(reversed);
|
||||
|
||||
setFocus ();
|
||||
// Make sure that the spin box has the focus to get key events
|
||||
// Calling setFocus() directly doesn't work because the spin box is not
|
||||
// yet visible.
|
||||
QMetaObject::invokeMethod(ui->doubleSpinBox, "setFocus", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void TaskPadParameters::onLengthChanged(double len)
|
||||
|
|
Loading…
Reference in New Issue
Block a user