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