Gui: automatically activate the DlgExpressionInput dialog; fixes #4384
This commit is contained in:
committed by
wwmayer
parent
685fc401a8
commit
4cfefb1938
@@ -107,7 +107,6 @@ DlgExpressionInput::DlgExpressionInput(const App::ObjectIdentifier & _path,
|
||||
this->resize(ui->expression->width()+18,this->height());
|
||||
}
|
||||
ui->expression->setFocus();
|
||||
ui->expression->activateWindow();
|
||||
}
|
||||
|
||||
DlgExpressionInput::~DlgExpressionInput()
|
||||
@@ -268,6 +267,13 @@ void DlgExpressionInput::mousePressEvent(QMouseEvent* ev)
|
||||
}
|
||||
}
|
||||
|
||||
void DlgExpressionInput::show()
|
||||
{
|
||||
QDialog::show();
|
||||
this->activateWindow();
|
||||
ui->expression->selectAll();
|
||||
}
|
||||
|
||||
void DlgExpressionInput::showEvent(QShowEvent* ev)
|
||||
{
|
||||
QDialog::showEvent(ev);
|
||||
|
||||
Reference in New Issue
Block a user