Commit 74ffc974 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: give access to fineslower and finefaster in the menus.

parent 0444f81a
......@@ -28,6 +28,7 @@
#endif
#include "input_manager.hpp"
#include <vlc_keys.h>
#include <QApplication>
......@@ -779,6 +780,16 @@ void InputManager::faster()
var_SetVoid( p_input, "rate-faster" );
}
void InputManager::littlefaster()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_RATE_FASTER_FINE );
}
void InputManager::littleslower()
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_RATE_SLOWER_FINE );
}
void InputManager::normalRate()
{
if( hasInput() )
......
......@@ -144,6 +144,8 @@ public slots:
void reverse();
void slower();
void faster();
void littlefaster();
void littleslower();
void normalRate();
void setRate( int );
/* Jumping */
......
......@@ -747,10 +747,18 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
action->setIcon( QIcon( ":/faster") );
action->setData( true );
action = menu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(),
SLOT( littlefaster() ) );
action->setData( true );
action = menu->addAction( qtr( "N&ormal Speed" ), THEMIM->getIM(),
SLOT( normalRate() ) );
action->setData( true );
action = menu->addAction( qtr( "Slower (fine)" ), THEMIM->getIM(),
SLOT( littleslower() ) );
action->setData( true );
action = menu->addAction( qtr( "Slo&wer" ), THEMIM->getIM(),
SLOT( slower() ) );
action->setIcon( QIcon( ":/slower") );
......
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