15#include <swshutdowndialog.h>
18SWOverlayEffect::SWOverlayEffect( QWidget* parent )
20 setPalette(Qt::transparent);
21 setAttribute(Qt::WA_TransparentForMouseEvents);
26void SWOverlayEffect::paintEvent( QPaintEvent *event )
31 QPainter painter(
this );
32 painter.setRenderHint( QPainter::Antialiasing );
33 painter.setBrush( QBrush( QColor( 33, 33, 33, 150 ) ) ) ;
34 painter.setPen( Qt::NoPen );
35 painter.drawRect( rect() );
40SWShutDownDialog::SWShutDownDialog( QWidget* parent, Qt::WindowFlags flags ) :
41 QDialog( parent, flags )
48SWShutDownDialog::~SWShutDownDialog()