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

#include "lookingglassconfig.h"

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

using namespace KWin;

namespace KWin {

class LookingGlassConfigHelper
{
  public:
    LookingGlassConfigHelper() : q(0) {}
    ~LookingGlassConfigHelper() { delete q; }
    LookingGlassConfig *q;
};
}

Q_GLOBAL_STATIC(LookingGlassConfigHelper, s_globalLookingGlassConfig)
LookingGlassConfig *LookingGlassConfig::self()
{
  if (!s_globalLookingGlassConfig()->q) {
    new LookingGlassConfig;
    s_globalLookingGlassConfig()->q->read();
  }

  return s_globalLookingGlassConfig()->q;
}

LookingGlassConfig::LookingGlassConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalLookingGlassConfig()->q);
  s_globalLookingGlassConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-LookingGlass" ) );

  KConfigSkeleton::ItemUInt  *itemRadius;
  itemRadius = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "Radius" ), mRadius, 200 );
  addItem( itemRadius, QStringLiteral( "Radius" ) );
}

LookingGlassConfig::~LookingGlassConfig()
{
  s_globalLookingGlassConfig()->q = 0;
}

