]> git.sesse.net Git - vlc/commitdiff
Cleaning: the QPalette is not needed outisde the constructor
authorBenjamin Poulain <ikipou@gmail.com>
Sun, 25 Oct 2009 12:05:20 +0000 (13:05 +0100)
committerIlkka Ollakka <ileoo@iki.fi>
Sun, 25 Oct 2009 16:06:36 +0000 (18:06 +0200)
The QPalette of the widget is already stored in QWidget, there is no
need to have an attribute for it.

Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index 084dbe17bb9f518ddd9668e177c9b366f7aa0347..01c556412b1e748b6710e46ec9360fd438790f74 100644 (file)
@@ -299,7 +299,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
 
     /* A dark background */
     setAutoFillBackground( true );
-    plt = palette();
+    QPalette plt = palette();
     plt.setColor( QPalette::Active, QPalette::Window , Qt::black );
     plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black );
     setPalette( plt );
index f80aab3d837cac026e69d041faec6376e9b3aba7..dc611bce95905fac10966b718fd381dc1733839a 100644 (file)
@@ -42,7 +42,6 @@
 #include <QMouseEvent>
 
 class ResizeEvent;
-class QPalette;
 class QPixmap;
 class QHBoxLayout;
 class QMenu;
@@ -95,7 +94,6 @@ public:
     virtual ~BackgroundWidget();
 
 private:
-    QPalette plt;
     QLabel *label;
     virtual void contextMenuEvent( QContextMenuEvent *event );
     intf_thread_t *p_intf;