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>
/* 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 );
#include <QMouseEvent>
class ResizeEvent;
-class QPalette;
class QPixmap;
class QHBoxLayout;
class QMenu;
virtual ~BackgroundWidget();
private:
- QPalette plt;
QLabel *label;
virtual void contextMenuEvent( QContextMenuEvent *event );
intf_thread_t *p_intf;