[vlc-devel] commit: Qt: actually activate random action (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Dec 4 07:21:46 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Nov 29 17:13:07 2009 +0100| [385239a4bf7b2a1366cf823dd0c2e1b85499ad2d] | committer: Jean-Baptiste Kempf
Qt: actually activate random action
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=385239a4bf7b2a1366cf823dd0c2e1b85499ad2d
---
modules/gui/qt4/actions_manager.cpp | 3 +--
modules/gui/qt4/input_manager.cpp | 5 +++++
modules/gui/qt4/input_manager.hpp | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp
index e4ac5a4..fe8d6b4 100644
--- a/modules/gui/qt4/actions_manager.cpp
+++ b/modules/gui/qt4/actions_manager.cpp
@@ -90,8 +90,7 @@ void ActionsManager::doAction( int id_action )
case QUIT_ACTION:
THEDP->quit(); break;
case RANDOM_ACTION:
- // FIXME
- break;
+ THEMIM->toggleRandom(); break;
default:
msg_Dbg( p_intf, "Action: %i", id_action );
break;
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index ee16a91..77d09fc 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -1029,6 +1029,11 @@ void MainInputManager::togglePlayPause()
getIM()->togglePlayPause();
}
+void MainInputManager::toggleRandom()
+{
+ var_ToggleBool( THEPL, "random" );
+}
+
void MainInputManager::activatePlayQuit( bool b_exit )
{
var_SetBool( THEPL, "play-and-exit", b_exit );
diff --git a/modules/gui/qt4/input_manager.hpp b/modules/gui/qt4/input_manager.hpp
index 688eb66..3169494 100644
--- a/modules/gui/qt4/input_manager.hpp
+++ b/modules/gui/qt4/input_manager.hpp
@@ -258,6 +258,7 @@ private:
public slots:
void togglePlayPause();
+ void toggleRandom();
void stop();
void next();
void prev();
More information about the vlc-devel
mailing list