raDIYo 0.4
swshutdowndialog.cpp
1/***************************************************************************
2
3 source::worx raDIYo
4 Copyright © 2020-2022 c.holzheuer
5 c.holzheuer@sourceworx.org
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12***************************************************************************/
13
14
15#include <swshutdowndialog.h>
16//#include <ui_swshutdowndialog.h>
17
18SWOverlayEffect::SWOverlayEffect( QWidget* parent )
19{
20 setPalette(Qt::transparent);
21 setAttribute(Qt::WA_TransparentForMouseEvents);
22}
23
24
25
26void SWOverlayEffect::paintEvent( QPaintEvent *event )
27{
28
29 Q_UNUSED( event );
30
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() );
36
37}
38
39
40SWShutDownDialog::SWShutDownDialog( QWidget* parent, Qt::WindowFlags flags ) :
41 QDialog( parent, flags )
42{
43 setupUi( this );
44 setModal( true );
45}
46
47
48SWShutDownDialog::~SWShutDownDialog()
49{
50
51}
52
53
54
55
56
57