moved shadow property names to breezepropertynames

wilder-pre-rebase
Hugo Pereira Da Costa 12 years ago
parent 9e79d94d43
commit d97fa1c6e8
  1. 2
      kstyle/breezepropertynames.cpp
  2. 2
      kstyle/breezepropertynames.h
  3. 7
      kstyle/breezeshadowhelper.cpp
  4. 2
      kstyle/breezeshadowhelper.h

@ -25,6 +25,8 @@ namespace Breeze
const char* const PropertyNames::noAnimations = "_kde_no_animations";
const char* const PropertyNames::noWindowGrab = "_kde_no_window_grab";
const char* const PropertyNames::netWMForceShadow( "_KDE_NET_WM_FORCE_SHADOW" );
const char* const PropertyNames::netWMSkipShadow( "_KDE_NET_WM_SKIP_SHADOW" );
const char* const PropertyNames::sidePanelView = "_kde_side_panel_view";
const char* const PropertyNames::toolButtonAlignment = "_kde_toolButton_alignment";

@ -29,6 +29,8 @@ namespace Breeze
static const char* const noAnimations;
static const char* const noWindowGrab;
static const char* const netWMForceShadow;
static const char* const netWMSkipShadow;
static const char* const sidePanelView;
static const char* const toolButtonAlignment;
};

@ -22,6 +22,7 @@
#include "breeze.h"
#include "breezehelper.h"
#include "breezepropertynames.h"
#include "breezestyleconfigdata.h"
#include <QDockWidget>
@ -41,8 +42,6 @@ namespace Breeze
{
const char* const ShadowHelper::netWMShadowAtomName( "_KDE_NET_WM_SHADOW" );
const char* const ShadowHelper::netWMForceShadowPropertyName( "_KDE_NET_WM_FORCE_SHADOW" );
const char* const ShadowHelper::netWMSkipShadowPropertyName( "_KDE_NET_WM_SKIP_SHADOW" );
//_____________________________________________________
ShadowHelper::ShadowHelper( QObject* parent, Helper& helper ):
@ -260,8 +259,8 @@ namespace Breeze
{
// flags
if( widget->property( netWMSkipShadowPropertyName ).toBool() ) return false;
if( widget->property( netWMForceShadowPropertyName ).toBool() ) return true;
if( widget->property( PropertyNames::netWMSkipShadow ).toBool() ) return false;
if( widget->property( PropertyNames::netWMForceShadow ).toBool() ) return true;
// menus
if( isMenu( widget ) ) return true;

@ -47,8 +47,6 @@ namespace Breeze
//*@name property names
//@{
static const char* const netWMShadowAtomName;
static const char* const netWMForceShadowPropertyName;
static const char* const netWMSkipShadowPropertyName;
//@}
//* constructor

Loading…
Cancel
Save