]> git.sesse.net Git - vlc/commitdiff
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 8b79da6d09d9fcb328231a70c844fadf967191b4..eff40d9039f79c4e89f0ca75c665d5d0018880f1 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 ad678c116dcbd1c755c4e2154ba53e41290a0459..543f10adec0c7b88b55d9bd49c8f4faf477946d9 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();