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 )
widget = stopButton;
}
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:{
QToolButton *prevButton = new QToolButton;
setupButton( prevButton );
......@@ -374,6 +382,24 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget = reverseButton;
}
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:
msg_Warn( p_intf, "This should not happen %i", button );
break;
......
......@@ -117,6 +117,7 @@ typedef enum actionType_e
{
PLAY_ACTION,
STOP_ACTION,
OPEN_ACTION,
PREVIOUS_ACTION,
NEXT_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