// This file is generated by kconfig_compiler_kf5 from blur.kcfg.
// All changes you do to this file will be lost.

#include "blurconfig.h"

#include <qglobal.h>
#include <QtCore/QFile>

using namespace KWin;

namespace KWin {

class BlurConfigHelper
{
  public:
    BlurConfigHelper() : q(0) {}
    ~BlurConfigHelper() { delete q; }
    BlurConfig *q;
};
}

Q_GLOBAL_STATIC(BlurConfigHelper, s_globalBlurConfig)
BlurConfig *BlurConfig::self()
{
  if (!s_globalBlurConfig()->q) {
    new BlurConfig;
    s_globalBlurConfig()->q->read();
  }

  return s_globalBlurConfig()->q;
}

BlurConfig::BlurConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalBlurConfig()->q);
  s_globalBlurConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-Blur" ) );

  KConfigSkeleton::ItemInt  *itemBlurRadius;
  itemBlurRadius = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "BlurRadius" ), mBlurRadius, 12 );
  addItem( itemBlurRadius, QStringLiteral( "BlurRadius" ) );
  KConfigSkeleton::ItemBool  *itemCacheTexture;
  itemCacheTexture = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "CacheTexture" ), mCacheTexture, true );
  addItem( itemCacheTexture, QStringLiteral( "CacheTexture" ) );
}

BlurConfig::~BlurConfig()
{
  s_globalBlurConfig()->q = 0;
}

