[vlc-commits] gui: qt: Fix build with Qt4

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 29 16:37:11 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 29 16:30:38 2016 +0100| [d9961de0126a54ee549107e21f0a9bb5f1a532b3] | committer: Hugo Beauzée-Luyssen

gui: qt: Fix build with Qt4

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

 modules/gui/qt/components/controller.cpp | 6 +++---
 modules/gui/qt/components/controller.hpp | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/components/controller.cpp b/modules/gui/qt/components/controller.cpp
index 2e80c09..b6efc66 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -1110,7 +1110,7 @@ void FullscreenControllerWidget::keyPressEvent( QKeyEvent *event )
 }
 
 /* */
-static int FullscreenControllerWidgetFullscreenChanged( vlc_object_t *obj,
+int FullscreenControllerWidget::FullscreenChanged( vlc_object_t *obj,
         const char *, vlc_value_t, vlc_value_t new_val, void *data )
 {
     vout_thread_t *p_vout = (vout_thread_t *) obj;
@@ -1162,7 +1162,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou
     foreach( vout_thread_t *p_vout, del )
     {
         var_DelCallback( p_vout, "fullscreen",
-                         FullscreenControllerWidgetFullscreenChanged, this );
+                         FullscreenControllerWidget::FullscreenChanged, this );
         vlc_mutex_lock( &lock );
         fullscreenChanged( p_vout, false, 0 );
         vout.removeAll( p_vout );
@@ -1187,7 +1187,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou
         vlc_mutex_lock( &lock );
         vout.append( p_vout );
         var_AddCallback( p_vout, "fullscreen",
-                         FullscreenControllerWidgetFullscreenChanged, this );
+                         FullscreenControllerWidget::FullscreenChanged, this );
         /* I miss a add and fire */
         fullscreenChanged( p_vout, var_GetBool( THEPL, "fullscreen" ),
                            var_GetInteger( p_vout, "mouse-hide-timeout" ) );
diff --git a/modules/gui/qt/components/controller.hpp b/modules/gui/qt/components/controller.hpp
index 4d75d16..0eb3af1 100644
--- a/modules/gui/qt/components/controller.hpp
+++ b/modules/gui/qt/components/controller.hpp
@@ -258,6 +258,10 @@ public:
     void updateFullwidthGeometry( int number );
     int targetScreen();
 
+private:
+    static int FullscreenChanged( vlc_object_t *obj,
+                    const char *, vlc_value_t, vlc_value_t new_val, void *data );
+
 signals:
     void keyPressed( QKeyEvent * );
     void fullscreenChanged( bool );



More information about the vlc-commits mailing list