[vlc-commits] Qt: create a AM::PPAction

Jean-Baptiste Kempf git at videolan.org
Fri Aug 15 20:39:27 CEST 2014


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 15 09:25:22 2014 +0200| [ba7ed3b867e960554f8e19db28fefc91e8a0c65c] | committer: Jean-Baptiste Kempf

Qt: create a AM::PPAction

Ref #11613

(cherry picked from commit 004213d0606e9590eb9454dedf8c0f4715e55dd0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=ba7ed3b867e960554f8e19db28fefc91e8a0c65c
---

 modules/gui/qt4/actions_manager.cpp |    9 +++++++++
 modules/gui/qt4/actions_manager.hpp |    3 +++
 2 files changed, 12 insertions(+)

diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp
index 8b79da6..eff40d9 100644
--- a/modules/gui/qt4/actions_manager.cpp
+++ b/modules/gui/qt4/actions_manager.cpp
@@ -34,6 +34,7 @@
 #include "input_manager.hpp"         /* THEMIM */
 #include "main_interface.hpp"        /* Show playlist */
 #include "components/controller.hpp" /* Toggle FSC controller width */
+#include "components/extended_panels.hpp"
 
 ActionsManager::ActionsManager( intf_thread_t * _p_i )
 {
@@ -201,3 +202,11 @@ void ActionsManager::skipBackward()
         THEMIM->getIM()->jumpBwd();
 }
 
+void ActionsManager::PPaction( QAction *a )
+{
+    int i_q = -1;
+    if( a != NULL )
+        i_q = a->data().toInt();
+
+    ExtVideo::setPostprocessing( p_intf, i_q );
+}
diff --git a/modules/gui/qt4/actions_manager.hpp b/modules/gui/qt4/actions_manager.hpp
index ad678c1..543f10a 100644
--- a/modules/gui/qt4/actions_manager.hpp
+++ b/modules/gui/qt4/actions_manager.hpp
@@ -32,6 +32,8 @@
 #include "util/singleton.hpp"
 
 #include <QObject>
+class QAction;
+
 typedef enum actionType_e
 {
     PLAY_ACTION,
@@ -81,6 +83,7 @@ public slots:
     void record();
     void skipForward();
     void skipBackward();
+    void PPaction( QAction * );
 
 protected slots:
     void fullscreen();



More information about the vlc-commits mailing list