Check that widget style supports "SH_ArgbDndWindow" to decide whether or not to draw a shadow around
ItemTag drag-and-drop icon.
This commit is contained in:
parent
83255bed73
commit
ba573c60ed
1 changed files with 5 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
|||
#include <KLocale>
|
||||
#include <KColorUtils>
|
||||
#include <KDebug>
|
||||
#include <KStyle>
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QLabel>
|
||||
|
@ -1702,7 +1703,10 @@ namespace Oxygen
|
|||
|
||||
// adjust geometry to include shadow size
|
||||
const int shadowSize( shadowCache().shadowSize() );
|
||||
const bool drawShadow( compositingActive() && shadowSize > 0 );
|
||||
const bool drawShadow(
|
||||
compositingActive() &&
|
||||
KStyle::customStyleHint( "SH_ArgbDndWindow", widget() ) &&
|
||||
shadowSize > 0 );
|
||||
|
||||
if( drawShadow )
|
||||
{ geometry.adjust( -shadowSize, -shadowSize, shadowSize, shadowSize ); }
|
||||
|
|
Loading…
Reference in a new issue