Commit eb254c90 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: correctly create some buttons.

parent 0ad86aca
...@@ -210,6 +210,14 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options ) ...@@ -210,6 +210,14 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget = stopButton; widget = stopButton;
} }
break; break;
case OPEN_BUTTON:{
QToolButton *openButton = new QToolButton;
setupButton( openButton );
CONNECT_MAP_SET( openButton, OPEN_ACTION );
BUTTON_SET_BAR( openButton );
widget = openButton;
}
break;
case PREVIOUS_BUTTON:{ case PREVIOUS_BUTTON:{
QToolButton *prevButton = new QToolButton; QToolButton *prevButton = new QToolButton;
setupButton( prevButton ); setupButton( prevButton );
...@@ -374,6 +382,24 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options ) ...@@ -374,6 +382,24 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget = reverseButton; widget = reverseButton;
} }
break; break;
case SKIP_BACK_BUTTON: {
QToolButton *skipBakButton = new QToolButton;
setupButton( skipBakButton );
CONNECT_MAP_SET( skipBakButton, SKIP_BACK_ACTION );
BUTTON_SET_BAR( skipBakButton );
ENABLE_ON_INPUT( skipBakButton );
widget = skipBakButton;
}
break;
case SKIP_FW_BUTTON: {
QToolButton *skipFwButton = new QToolButton;
setupButton( skipFwButton );
CONNECT_MAP_SET( skipFwButton, SKIP_FW_ACTION );
BUTTON_SET_BAR( skipFwButton );
ENABLE_ON_INPUT( skipFwButton );
widget = skipFwButton;
}
break;
default: default:
msg_Warn( p_intf, "This should not happen %i", button ); msg_Warn( p_intf, "This should not happen %i", button );
break; break;
......
...@@ -117,6 +117,7 @@ typedef enum actionType_e ...@@ -117,6 +117,7 @@ typedef enum actionType_e
{ {
PLAY_ACTION, PLAY_ACTION,
STOP_ACTION, STOP_ACTION,
OPEN_ACTION,
PREVIOUS_ACTION, PREVIOUS_ACTION,
NEXT_ACTION, NEXT_ACTION,
SLOWER_ACTION, SLOWER_ACTION,
......
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