From b9f5795da6fe75391c8f57492ff4ef9e1fc82340 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 15 Aug 2010 12:40:10 +0200 Subject: [PATCH] EffectView: fixed artifacts with semitransparent widget shadow We must not set the Qt::WA_OpaquePaintEvent attribute when using a semitransparent background image in paintEvent(). Fixes artifacts in EffectView's shadowed border. (cherry picked from commit d830e7f622aa238762eeaf4f8aac57485463bc0e) --- src/gui/widgets/EffectView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/widgets/EffectView.cpp b/src/gui/widgets/EffectView.cpp index 98f91df5e..a62ab6f73 100644 --- a/src/gui/widgets/EffectView.cpp +++ b/src/gui/widgets/EffectView.cpp @@ -1,5 +1,5 @@ /* - * effect_view.cpp - view-component for an effect + * EffectView.cpp - view-component for an effect * * Copyright (c) 2006-2007 Danny McRae * Copyright (c) 2007-2010 Tobias Doerffel @@ -51,8 +51,6 @@ EffectView::EffectView( Effect * _model, QWidget * _parent ) : { setFixedSize( 210, 60 ); - setAttribute( Qt::WA_OpaquePaintEvent, true ); - m_bypass = new ledCheckBox( "", this ); m_bypass->move( 3, 3 ); m_bypass->setWhatsThis( tr( "Toggles the effect on or off." ) );