Commit 7f6d9e7f authored by Dan Lipsa's avatar Dan Lipsa

Set focus when set_string for a QTextEdit.

This enable a PythonView to receive focus out signal and fixes TestPythonView.
parent a5aa02be
......@@ -82,6 +82,7 @@ bool pqAbstractStringEventPlayer::playEvent(QObject* Object, const QString& Comm
if (QTextEdit* const object = qobject_cast<QTextEdit*>(Object))
{
object->setFocus(Qt::OtherFocusReason);
object->document()->setPlainText(value);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment