* TEH controls
**********************************************************************/
* TEH controls
**********************************************************************/
-#define setupSmallButton( aButton ){ \
- aButton->setMaximumSize( QSize( 26, 26 ) ); \
- aButton->setMinimumSize( QSize( 26, 26 ) ); \
- aButton->setIconSize( QSize( 20, 20 ) ); }
+static void setupSmallButton( QPushButton *aButton )
+{
+ aButton->setMaximumSize( QSize( 26, 26 ) );
+ aButton->setMinimumSize( QSize( 26, 26 ) );
+ aButton->setIconSize( QSize( 20, 20 ) );
+ aButton->setFocusPolicy( Qt::NoFocus );
+}
/* init static variables in advanced controls */
mtime_t AdvControlsWidget::timeA = 0;
/* init static variables in advanced controls */
mtime_t AdvControlsWidget::timeA = 0;
slowerButton = new QToolButton;
slowerButton->setAutoRaise( true );
slowerButton->setMaximumSize( QSize( 26, 20 ) );
slowerButton = new QToolButton;
slowerButton->setAutoRaise( true );
slowerButton->setMaximumSize( QSize( 26, 20 ) );
+ slowerButton->setFocusPolicy( Qt::NoFocus );
BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
fasterButton = new QToolButton;
fasterButton->setAutoRaise( true );
fasterButton->setMaximumSize( QSize( 26, 20 ) );
BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
fasterButton = new QToolButton;
fasterButton->setAutoRaise( true );
fasterButton->setMaximumSize( QSize( 26, 20 ) );
+ fasterButton->setFocusPolicy( Qt::NoFocus );
BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
playButton->setMaximumSize( QSize( 36, 36 ) );
playButton->setMinimumSize( QSize( 36, 36 ) );
playButton->setIconSize( QSize( 30, 30 ) );
playButton->setMaximumSize( QSize( 36, 36 ) );
playButton->setMinimumSize( QSize( 36, 36 ) );
playButton->setIconSize( QSize( 30, 30 ) );
+ playButton->setFocusPolicy( Qt::NoFocus );
/** Prev + Stop + Next Block **/
controlButLayout = new QHBoxLayout;
/** Prev + Stop + Next Block **/
controlButLayout = new QHBoxLayout;