[vlc-commits] Qt: disable focus on widgets for hotkeys selection

Jean-Baptiste Kempf git at videolan.org
Fri Apr 26 20:26:49 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 26 20:24:14 2013 +0200| [d9b28c03a7b81dbf45ab74ec0fe6669de5aa173e] | committer: Jean-Baptiste Kempf

Qt: disable focus on widgets for hotkeys selection

Ref #7929

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9b28c03a7b81dbf45ab74ec0fe6669de5aa173e
---

 modules/gui/qt4/components/preferences_widgets.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index d54cc6c..6dbf008 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -1428,6 +1428,10 @@ KeyInputDialog::KeyInputDialog( QTreeWidget *_table,
     buttonBox->addButton( cancel, QDialogButtonBox::RejectRole );
     ok->setDefault( true );
 
+    ok->setFocusPolicy(Qt::NoFocus);
+    unset->setFocusPolicy(Qt::NoFocus);
+    cancel->setFocusPolicy(Qt::NoFocus);
+
     vLayout->addWidget( buttonBox );
     ok->hide();
 



More information about the vlc-commits mailing list