[vlc-devel] commit: Set sizePolicy for backgroundWidget, so when album art is visible ( Ilkka Ollakka )

git version control git at videolan.org
Tue Jul 1 22:07:49 CEST 2008


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Jul  1 23:08:30 2008 +0300| [93198986ce5dbb5fe205134b4b27819eb6edbdae]

Set sizePolicy for backgroundWidget, so when album art is visible
play/stop/etc. buttons don't jump around when album art size changes.

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

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

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index d4e5e23..207699e 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -173,7 +173,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
                  :QWidget( NULL ), p_intf( _p_i )
 {
     /* We should use that one to take the more size it can */
-//    setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
+    setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding);
 
     /* A dark background */
     setAutoFillBackground( true );




More information about the vlc-devel mailing list