LinkedModelGroupView: Un-focus filter edit...

... whenever the user clicks other widgets
This commit is contained in:
Johannes Lorenz
2020-05-23 08:59:35 +02:00
parent c3e056a21d
commit 7aef23d209

View File

@@ -42,6 +42,11 @@ LinkedModelGroupView::LinkedModelGroupView(QWidget* parent,
m_colNum(colNum),
m_layout(new ControlLayout(this))
{
// This is required to remove the focus of the line edit
// when e.g. another spin box is being clicked.
// Removing the focus is wanted because in many cases, the user wants to
// quickly play notes on the virtual keyboard.
setFocusPolicy( Qt::StrongFocus );
}