Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezeshadowhelper.cpp
Show First 20 Lines • Show All 367 Lines • ▼ Show 20 Line(s) | 358 | { | |||
---|---|---|---|---|---|
368 | shadowTiles(); | 368 | shadowTiles(); | ||
369 | if( !_shadowTiles.isValid() ) return; | 369 | if( !_shadowTiles.isValid() ) return; | ||
370 | 370 | | |||
371 | // create platform shadow tiles if needed | 371 | // create platform shadow tiles if needed | ||
372 | const QVector<KWindowShadowTile::Ptr>& tiles = createShadowTiles(); | 372 | const QVector<KWindowShadowTile::Ptr>& tiles = createShadowTiles(); | ||
373 | if( tiles.count() != numTiles ) return; | 373 | if( tiles.count() != numTiles ) return; | ||
374 | 374 | | |||
375 | // find a shadow associated with the widget | 375 | // find a shadow associated with the widget | ||
376 | KWindowShadow*& shadow = _shadows[ widget ]; | 376 | QPointer<KWindowShadow>& shadow = _shadows[ widget ]; | ||
377 | 377 | | |||
378 | // we want the shadow to be deleted after the decorated window is destroyed | 378 | // we want the shadow to be deleted after the decorated window is destroyed | ||
379 | if( !shadow ) | 379 | if( !shadow ) | ||
380 | { shadow = new KWindowShadow( widget->windowHandle() ); } | 380 | { shadow = new KWindowShadow( widget->windowHandle() ); } | ||
381 | 381 | | |||
382 | if( shadow->isCreated() ) | 382 | if( shadow->isCreated() ) | ||
383 | { shadow->destroy(); } | 383 | { shadow->destroy(); } | ||
384 | 384 | | |||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |