From 7aef23d209760d019716e10c65c7fcbe5f634e52 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Sat, 23 May 2020 08:59:35 +0200 Subject: [PATCH] LinkedModelGroupView: Un-focus filter edit... ... whenever the user clicks other widgets --- src/gui/widgets/LinkedModelGroupViews.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/widgets/LinkedModelGroupViews.cpp b/src/gui/widgets/LinkedModelGroupViews.cpp index 1b4bd8bbd..b9e007ff9 100644 --- a/src/gui/widgets/LinkedModelGroupViews.cpp +++ b/src/gui/widgets/LinkedModelGroupViews.cpp @@ -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 ); }