From 39d7ac71c201178520b369c5463a1676e8127492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 23 May 2014 11:20:45 +0200 Subject: [PATCH] [kcmkwin/compositing] Accept StrongFocus on the QuickView's WidgetContainer This ensures that we can tab to the UI written in QtQuick. Unfortunately it doesn't get initial focus, which seems to be a general problem of KCMShell (QWidget based KCMs also do not get focus) and it's not possible to tab out of quick ui again. BUG: 335195 --- kcmkwin/kwincompositing/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index d3c40c65ea..5aed7d08d9 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -82,6 +82,7 @@ KWinCompositingKCM::KWinCompositingKCM(QWidget* parent, const QVariantList& args connect(m_view.data(), &KWin::Compositing::EffectView::changed, [this]{ emit changed(true); }); + w->setFocusPolicy(Qt::StrongFocus); } KWinCompositingKCM::~KWinCompositingKCM()