svn path=/trunk/KDE/kdebase/workspace/; revision=1014996
remotes/origin/Plasma/5.0
Laurent Montel 17 years ago
parent 16bc16ba88
commit 2588d1fd8d
  1. 6
      clients/nitrogen/nitrogenconfiguration.cpp
  2. 10
      clients/nitrogen/nitrogenconfiguration.h

@ -216,7 +216,7 @@ namespace Nitrogen
}
//__________________________________________________
NitrogenConfiguration::ButtonType NitrogenConfiguration::buttonType( QString value )
NitrogenConfiguration::ButtonType NitrogenConfiguration::buttonType( const QString& value )
{
if( value == "KDE 4.2" ) return ButtonKde42;
else if( value == "KDE 4.3" ) return ButtonKde43;
@ -241,7 +241,7 @@ namespace Nitrogen
}
//__________________________________________________
NitrogenConfiguration::FrameBorder NitrogenConfiguration::frameBorder( QString value )
NitrogenConfiguration::FrameBorder NitrogenConfiguration::frameBorder( const QString& value )
{
if( value == "No Border" ) return BorderNone;
else if( value == "Tiny" ) return BorderTiny;
@ -265,7 +265,7 @@ namespace Nitrogen
}
//__________________________________________________
NitrogenConfiguration::BlendColorType NitrogenConfiguration::blendColor( QString value )
NitrogenConfiguration::BlendColorType NitrogenConfiguration::blendColor( const QString& value )
{
if( value == "No Blending" ) return NoBlending;
else if( value == "Radial Blending" ) return RadialBlending;

@ -152,7 +152,7 @@ namespace Nitrogen
//@{
static QString buttonTypeName( ButtonType );
static ButtonType buttonType( QString );
static ButtonType buttonType( const QString& );
virtual ButtonType buttonType( void ) const
{ return buttonType_; }
@ -169,7 +169,7 @@ namespace Nitrogen
//@{
static QString frameBorderName( FrameBorder );
static FrameBorder frameBorder( QString );
static FrameBorder frameBorder( const QString& );
virtual FrameBorder frameBorder() const
{ return frameBorder_; }
@ -180,7 +180,7 @@ namespace Nitrogen
virtual void setFrameBorder( FrameBorder value )
{ frameBorder_ = value; }
virtual void setFrameBorder( QString value )
virtual void setFrameBorder( const QString& value )
{ frameBorder_ = frameBorder( value ); }
//@}
@ -189,7 +189,7 @@ namespace Nitrogen
//@{
static QString blendColorName( BlendColorType );
static BlendColorType blendColor( QString );
static BlendColorType blendColor( const QString& );
virtual BlendColorType blendColor( void ) const
{ return blendColor_; }
@ -200,7 +200,7 @@ namespace Nitrogen
virtual void setBlendColor( BlendColorType value )
{ blendColor_ = value; }
virtual void setBlendColor( QString value )
virtual void setBlendColor( const QString& value )
{ blendColor_ = blendColor( value ); }
//@}

Loading…
Cancel
Save