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

#include "sheetconfig.h"

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

using namespace KWin;

namespace KWin {

class SheetConfigHelper
{
  public:
    SheetConfigHelper() : q(0) {}
    ~SheetConfigHelper() { delete q; }
    SheetConfig *q;
};
}

Q_GLOBAL_STATIC(SheetConfigHelper, s_globalSheetConfig)
SheetConfig *SheetConfig::self()
{
  if (!s_globalSheetConfig()->q) {
    new SheetConfig;
    s_globalSheetConfig()->q->read();
  }

  return s_globalSheetConfig()->q;
}

SheetConfig::SheetConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalSheetConfig()->q);
  s_globalSheetConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-Sheet" ) );

  KConfigSkeleton::ItemInt  *itemAnimationTime;
  itemAnimationTime = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "AnimationTime" ), mAnimationTime, 0 );
  addItem( itemAnimationTime, QStringLiteral( "AnimationTime" ) );
}

SheetConfig::~SheetConfig()
{
  s_globalSheetConfig()->q = 0;
}

