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

#include "magnifierconfig.h"

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

using namespace KWin;

namespace KWin {

class MagnifierConfigHelper
{
  public:
    MagnifierConfigHelper() : q(0) {}
    ~MagnifierConfigHelper() { delete q; }
    MagnifierConfig *q;
};
}

Q_GLOBAL_STATIC(MagnifierConfigHelper, s_globalMagnifierConfig)
MagnifierConfig *MagnifierConfig::self()
{
  if (!s_globalMagnifierConfig()->q) {
    new MagnifierConfig;
    s_globalMagnifierConfig()->q->read();
  }

  return s_globalMagnifierConfig()->q;
}

MagnifierConfig::MagnifierConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalMagnifierConfig()->q);
  s_globalMagnifierConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-Magnifier" ) );

  KConfigSkeleton::ItemUInt  *itemWidth;
  itemWidth = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "Width" ), mWidth, 200 );
  addItem( itemWidth, QStringLiteral( "Width" ) );
  KConfigSkeleton::ItemUInt  *itemHeight;
  itemHeight = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "Height" ), mHeight, 200 );
  addItem( itemHeight, QStringLiteral( "Height" ) );
  KConfigSkeleton::ItemDouble  *itemInitialZoom;
  itemInitialZoom = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "InitialZoom" ), mInitialZoom, 1.0 );
  addItem( itemInitialZoom, QStringLiteral( "InitialZoom" ) );
}

MagnifierConfig::~MagnifierConfig()
{
  s_globalMagnifierConfig()->q = 0;
}

