[vlc-commits] Qt: fix an annoying resizing issue.
Jean-Baptiste Kempf
git at videolan.org
Mon Apr 23 18:30:18 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 23 18:25:37 2012 +0200| [66b3569cecf9fb671e21bc672922295618971ef8] | committer: Jean-Baptiste Kempf
Qt: fix an annoying resizing issue.
That was resizing when video was stacked in the playlist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66b3569cecf9fb671e21bc672922295618971ef8
---
modules/gui/qt4/main_interface.cpp | 8 +++++++-
modules/gui/qt4/main_interface.hpp | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 8d952d2..db3a12d 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -210,7 +210,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT( this, askVideoToResize( unsigned int, unsigned int ),
this, setVideoSize( unsigned int, unsigned int ) );
CONNECT( videoWidget, sizeChanged( int, int ),
- this, resizeStack( int, int ) );
+ this, videoSizeChanged( int, int ) );
}
CONNECT( this, askVideoSetFullScreen( bool ),
this, setVideoFullScreen( bool ) );
@@ -683,6 +683,12 @@ void MainInterface::setVideoSize( unsigned int w, unsigned int h )
videoWidget->SetSizing( w, h );
}
+void MainInterface::videoSizeChanged( int w, int h )
+{
+ if( !playlistWidget || playlistWidget->artContainer->currentWidget() != videoWidget )
+ resizeStack( w, h );
+}
+
void MainInterface::setVideoFullScreen( bool fs )
{
b_videoFullScreen = fs;
diff --git a/modules/gui/qt4/main_interface.hpp b/modules/gui/qt4/main_interface.hpp
index 3567c4a..c81d8b5 100644
--- a/modules/gui/qt4/main_interface.hpp
+++ b/modules/gui/qt4/main_interface.hpp
@@ -238,6 +238,7 @@ private slots:
}
void setVideoSize( unsigned int, unsigned int );
+ void videoSizeChanged( int, int );
void setVideoFullScreen( bool );
void setVideoOnTop( bool );
void setBoss();
More information about the vlc-commits
mailing list