From b8ad5bf025e0104e084e5b536eda793122cf09c4 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 23 Jan 2011 23:52:59 +0100 Subject: [PATCH] ControllerView: fixed minor artifacts at widget drop shadow We must not set the Qt::WA_OpaquePaintEvent attribute when painting semi-transparent a drop shadow for the ControllerView. --- src/gui/widgets/ControllerView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/widgets/ControllerView.cpp b/src/gui/widgets/ControllerView.cpp index cf2318765..bafff3878 100644 --- a/src/gui/widgets/ControllerView.cpp +++ b/src/gui/widgets/ControllerView.cpp @@ -2,6 +2,7 @@ * ControllerView.cpp - view-component for an controller * * Copyright (c) 2008-2009 Paul Giblock + * Copyright (c) 2011 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -52,8 +53,6 @@ ControllerView::ControllerView( Controller * _model, QWidget * _parent ) : { setFixedSize( 210, 32 ); - setAttribute( Qt::WA_OpaquePaintEvent, TRUE ); - QPushButton * ctls_btn = new QPushButton( tr( "Controls" ), this ); QFont f = ctls_btn->font(); @@ -68,7 +67,6 @@ ControllerView::ControllerView( Controller * _model, QWidget * _parent ) : m_controllerDlg ); Qt::WindowFlags flags = m_subWindow->windowFlags(); - flags |= Qt::MSWindowsFixedSizeDialogHint; flags &= ~Qt::WindowMaximizeButtonHint; m_subWindow->setWindowFlags( flags ); m_subWindow->setFixedSize( m_subWindow->size() );