[vlc-commits] commit: Work-around a Qt issue when starting in minimal mode ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Sun May 30 01:14:09 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 30 01:03:09 2010 +0200| [16cc1a60c626afaf0e2da68803d1beb3895d2969] | committer: Jean-Baptiste Kempf 

Work-around a Qt issue when starting in minimal mode

Close #3573
How can the size of a widget be bigger than the size of its parent window? Really weird Qt bug
(cherry picked from commit 8ca53bfd5abb38e5b4d4a8b89ce523e0f4d4aad1)

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

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

 modules/gui/qt4/main_interface.hpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.hpp b/modules/gui/qt4/main_interface.hpp
index 689da2b..3390190 100644
--- a/modules/gui/qt4/main_interface.hpp
+++ b/modules/gui/qt4/main_interface.hpp
@@ -209,7 +209,10 @@ private slots:
 
     void resizeStack( int w, int h ) {
         if( !isFullScreen() && !isMaximized() )
-            resize( size() - stackCentralW->size() + QSize( w, h ) );
+            if( i_visualmode == 1 ) resize( w, h ); /* Oh yes, it shouldn't
+                                   be possible that size() - stackCentralW->size() < 0
+                                   since stackCentralW is contained in the QMW... */
+            else resize( size() - stackCentralW->size() + QSize( w, h ) );
         debug(); }
 
 



More information about the vlc-commits mailing list