From b595735761c224e03db896ef505595e6f79ec568 Mon Sep 17 00:00:00 2001 From: ronso0 Date: Thu, 25 Apr 2024 13:09:52 +0200 Subject: [PATCH] OpenGLWindow / waveform / spinnies: set ToolTip flag to not get keyboard focus --- src/widget/openglwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widget/openglwindow.cpp b/src/widget/openglwindow.cpp index 0bcda0ddd05..d3aff16f78e 100644 --- a/src/widget/openglwindow.cpp +++ b/src/widget/openglwindow.cpp @@ -12,6 +12,9 @@ OpenGLWindow::OpenGLWindow(WGLWidget* pWidget) : m_pWidget(pWidget) { setFormat(WaveformWidgetFactory::getSurfaceFormat()); + // Set the tooltip flag to prevent this window/widget from getting + // keyboard focus on click. + setFlag(Qt::ToolTip); } OpenGLWindow::~OpenGLWindow() {