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 af04e80c authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

added some comments

moved member default initialization to header
parent da757f66
......@@ -33,7 +33,6 @@ namespace Breeze
//____________________________________________________________________
MdiWindowShadow::MdiWindowShadow( QWidget* parent, TileSet shadowTiles ):
QWidget( parent ),
_widget( nullptr ),
_shadowTiles( shadowTiles )
{
setAttribute( Qt::WA_OpaquePaintEvent, false );
......@@ -128,12 +127,14 @@ namespace Breeze
// store in set
_registeredWidgets.insert( widget );
// create shadow immediatly if widget is already visible
if( widget->isVisible() )
{
installShadow( widget );
updateShadowGeometry( widget );
updateShadowZOrder( widget );
}
widget->installEventFilter( this );
// catch object destruction
......
......@@ -66,7 +66,7 @@ namespace Breeze
private:
//* associated widget
QWidget* _widget;
QWidget* _widget = nullptr;
//* tileset rect, used for painting
QRect _shadowTilesRect;
......
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