[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:05:25 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 30 01:03:09 2010 +0200| [8ca53bfd5abb38e5b4d4a8b89ce523e0f4d4aad1] | 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ca53bfd5abb38e5b4d4a8b89ce523e0f4d4aad1
---
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