Commit 73ab1cd9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Disable focus on buttons to avoid "space" to be catched by a button on focus.

Space is Play/Pause. ALWAYS
parent 7913a116
...@@ -317,7 +317,9 @@ void VisualSelector::next() ...@@ -317,7 +317,9 @@ void VisualSelector::next()
#define setupSmallButton( aButton ){ \ #define setupSmallButton( aButton ){ \
aButton->setMaximumSize( QSize( 26, 26 ) ); \ aButton->setMaximumSize( QSize( 26, 26 ) ); \
aButton->setMinimumSize( QSize( 26, 26 ) ); \ aButton->setMinimumSize( QSize( 26, 26 ) ); \
aButton->setIconSize( QSize( 20, 20 ) ); } aButton->setIconSize( QSize( 20, 20 ) ); \
aButton->setFocusPolicy( Qt::NoFocus ); \
}
/* init static variables in advanced controls */ /* init static variables in advanced controls */
mtime_t AdvControlsWidget::timeA = 0; mtime_t AdvControlsWidget::timeA = 0;
...@@ -527,12 +529,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -527,12 +529,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
slowerButton = new QToolButton; slowerButton = new QToolButton;
slowerButton->setAutoRaise( true ); slowerButton->setAutoRaise( true );
slowerButton->setMaximumSize( QSize( 26, 20 ) ); slowerButton->setMaximumSize( QSize( 26, 20 ) );
slowerButton->setFocusPolicy( Qt::NoFocus );
BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() ); BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
fasterButton = new QToolButton; fasterButton = new QToolButton;
fasterButton->setAutoRaise( true ); fasterButton->setAutoRaise( true );
fasterButton->setMaximumSize( QSize( 26, 20 ) ); fasterButton->setMaximumSize( QSize( 26, 20 ) );
fasterButton->setFocusPolicy( Qt::NoFocus );
BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() ); BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
...@@ -643,7 +647,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -643,7 +647,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
playButton->setMaximumSize( QSize( 36, 36 ) ); playButton->setMaximumSize( QSize( 36, 36 ) );
playButton->setMinimumSize( QSize( 36, 36 ) ); playButton->setMinimumSize( QSize( 36, 36 ) );
playButton->setIconSize( QSize( 30, 30 ) ); playButton->setIconSize( QSize( 30, 30 ) );
playButton->setFocusPolicy( Qt::NoFocus );
/** Prev + Stop + Next Block **/ /** Prev + Stop + Next Block **/
controlButLayout = new QHBoxLayout; controlButLayout = new QHBoxLayout;
......
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