Qt: create a AM::PPAction
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Aug 2014 07:25:22 +0000 (09:25 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Aug 2014 07:28:32 +0000 (09:28 +0200)
Ref #11613

modules/gui/qt4/actions_manager.cpp
modules/gui/qt4/actions_manager.hpp

index 8b79da6..eff40d9 100644 (file)
@@ -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 );
+}
index ad678c1..543f10a 100644 (file)
@@ -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();