Commit e7807a9e authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: add a shortcut to give the focus to the search entry in advanced prefs

parent 2a823309
......@@ -43,6 +43,7 @@
#include <QDialogButtonBox>
#include <QStackedWidget>
#include <QSplitter>
#include <QShortcut>
PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
: QVLCDialog( parent, _p_intf )
......@@ -165,6 +166,9 @@ void PrefsDialog::setAdvanced()
CONNECT( current_filter, stateChanged(int),
this, onlyLoadedToggled() );
advanced_tree_panel->layout()->addWidget( current_filter );
QShortcut *search = new QShortcut( QKeySequence( QKeySequence::Find ), tree_filter );
CONNECT( search, activated(), tree_filter, setFocus() );
}
/* If don't have already and advanced TREE, then create it */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment