From 831cd813208a3465b8edfd26e56d6cdc44f9e6a1 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 10 Jun 2014 16:17:55 +0200 Subject: [PATCH] #1151 - Done the same trick on the sliders --- companion/src/modeledit/modelpanel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/companion/src/modeledit/modelpanel.cpp b/companion/src/modeledit/modelpanel.cpp index 157ecbf95..0ea59652d 100644 --- a/companion/src/modeledit/modelpanel.cpp +++ b/companion/src/modeledit/modelpanel.cpp @@ -94,4 +94,9 @@ void ModelPanel::disableMouseScrolling() sb->installEventFilter(this); sb->setFocusPolicy(Qt::StrongFocus); } + + Q_FOREACH(QSlider * slider, findChildren()) { + slider->installEventFilter(this); + slider->setFocusPolicy(Qt::StrongFocus); + } }