[vlc-commits] commit: Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle. (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sat Jun 12 21:38:55 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 12 02:28:34 2010 +0200| [646aab6e5d3e5f24070e3b630efa460d686a850a] | committer: Jean-Baptiste Kempf 

Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle.
(cherry picked from commit 8a0bd27b9524be4ba2b8b67e030ae9d9ca096b03)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/interface_widgets.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 60b844b..104291f 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -74,6 +74,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i )
     layout->setContentsMargins( 0, 0, 0, 0 );
     setLayout( layout );
     stable = NULL;
+    show();
 }
 
 VideoWidget::~VideoWidget()
@@ -156,7 +157,6 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
    Parent has to care about resizing itself */
 void VideoWidget::SetSizing( unsigned int w, unsigned int h )
 {
-    if( !isVisible() ) show();
     resize( w, h );
     emit sizeChanged( w, h );
     /* Work-around a bug?misconception? that would happen when vout core resize
@@ -179,7 +179,6 @@ void VideoWidget::release( void )
     stable = NULL;
 
     updateGeometry();
-    hide();
 }
 
 /**********************************************************************



More information about the vlc-commits mailing list