Commit 6bf1a3ba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, action_manager: provide skip fwd and bckwd actions

parent 508edcb6
......@@ -80,12 +80,10 @@ void ActionsManager::doAction( int id_action )
case REVERSE_ACTION:
THEMIM->getIM()->reverse(); break;
case SKIP_BACK_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-action",
ACTIONID_JUMP_BACKWARD_SHORT );
skipBackward();
break;
case SKIP_FW_ACTION:
var_SetInteger( p_intf->p_libvlc, "key-action",
ACTIONID_JUMP_FORWARD_SHORT );
skipForward();
break;
case QUIT_ACTION:
THEDP->quit(); break;
......@@ -187,3 +185,13 @@ void ActionsManager::AudioDown()
aout_VolumeDown( THEPL, 1, NULL );
}
void ActionsManager::skipForward()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_FORWARD_SHORT );
}
void ActionsManager::skipBackward()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_SHORT );
}
......@@ -86,6 +86,8 @@ public slots:
void AudioDown();
void play();
void record();
void skipForward();
void skipBackward();
protected slots:
void fullscreen();
void snapshot();
......
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