Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit afcd6335 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

- 0L -> nullptr

- moved mdi shadow constructor from .h to .cpp
parent 7841dedf
......@@ -30,6 +30,17 @@
namespace Breeze
{
//____________________________________________________________________
MdiWindowShadow::MdiWindowShadow( QWidget* parent, TileSet shadowTiles ):
QWidget( parent ),
_widget( nullptr ),
_shadowTiles( shadowTiles )
{
setAttribute( Qt::WA_OpaquePaintEvent, false );
setAttribute( Qt::WA_TransparentForMouseEvents, true );
setFocusPolicy( Qt::NoFocus );
}
//____________________________________________________________________
void MdiWindowShadow::updateGeometry( void )
{
......@@ -167,7 +178,7 @@ namespace Breeze
{
// check object,
if( !object->parent() ) return 0L;
if( !object->parent() ) return nullptr;
// find existing window shadows
const QList<QObject* > children = object->parent()->children();
......@@ -177,7 +188,7 @@ namespace Breeze
{ if( shadow->widget() == object ) return shadow; }
}
return 0L;
return nullptr;
}
......
......@@ -42,19 +42,7 @@ namespace Breeze
public:
//* constructor
explicit MdiWindowShadow( QWidget* parent, TileSet shadowTiles ):
QWidget( parent ),
_widget( 0L ),
_shadowTiles( shadowTiles )
{
setAttribute( Qt::WA_OpaquePaintEvent, false );
setAttribute( Qt::WA_TransparentForMouseEvents, true );
setFocusPolicy( Qt::NoFocus );
}
//* destructor
virtual ~MdiWindowShadow( void )
{}
explicit MdiWindowShadow( QWidget*, TileSet );
//* update geometry
void updateGeometry( void );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment