Commit 4b1160c8 authored by Benjamin Poulain's avatar Benjamin Poulain Committed by Ilkka Ollakka

Cleaning: the QPalette is not needed outisde the constructor

The QPalette of the widget is already stored in QWidget, there is no
need to have an attribute for it.
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 906e7c0b
...@@ -299,7 +299,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) ...@@ -299,7 +299,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
/* A dark background */ /* A dark background */
setAutoFillBackground( true ); setAutoFillBackground( true );
plt = palette(); QPalette plt = palette();
plt.setColor( QPalette::Active, QPalette::Window , Qt::black ); plt.setColor( QPalette::Active, QPalette::Window , Qt::black );
plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black ); plt.setColor( QPalette::Inactive, QPalette::Window , Qt::black );
setPalette( plt ); setPalette( plt );
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <QMouseEvent> #include <QMouseEvent>
class ResizeEvent; class ResizeEvent;
class QPalette;
class QPixmap; class QPixmap;
class QHBoxLayout; class QHBoxLayout;
class QMenu; class QMenu;
...@@ -95,7 +94,6 @@ public: ...@@ -95,7 +94,6 @@ public:
virtual ~BackgroundWidget(); virtual ~BackgroundWidget();
private: private:
QPalette plt;
QLabel *label; QLabel *label;
virtual void contextMenuEvent( QContextMenuEvent *event ); virtual void contextMenuEvent( QContextMenuEvent *event );
intf_thread_t *p_intf; intf_thread_t *p_intf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment