]> git.sesse.net Git - vlc/commitdiff
Set sizePolicy for backgroundWidget, so when album art is visible
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 1 Jul 2008 20:08:30 +0000 (23:08 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 1 Jul 2008 20:09:41 +0000 (23:09 +0300)
play/stop/etc. buttons don't jump around when album art size changes.

modules/gui/qt4/components/interface_widgets.cpp

index d4e5e23a5e88a283be3c9508f4de66f31ee08453..207699ed46a3da8cfa48e9f77af6f789bf4be1e1 100644 (file)
@@ -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 );