Commit 7c2000c3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, add a previous/reset function, when time < 10s

parent f340f16f
......@@ -1106,6 +1106,14 @@ void MainInputManager::prev()
playlist_Prev( THEPL );
}
void MainInputManager::prevOrReset()
{
if( !p_input || var_GetTime( p_input , "time") < 10000 )
playlist_Prev( THEPL );
else
getIM()->sliderUpdate( 0.0 );
}
void MainInputManager::togglePlayPause()
{
/* No input, play */
......
......@@ -277,6 +277,7 @@ public slots:
void stop();
void next();
void prev();
void prevOrReset();
void activatePlayQuit( bool );
void loopRepeatLoopStatus();
......
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