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

#include "thumbnailasideconfig.h"

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

using namespace KWin;

namespace KWin {

class ThumbnailAsideConfigHelper
{
  public:
    ThumbnailAsideConfigHelper() : q(0) {}
    ~ThumbnailAsideConfigHelper() { delete q; }
    ThumbnailAsideConfig *q;
};
}

Q_GLOBAL_STATIC(ThumbnailAsideConfigHelper, s_globalThumbnailAsideConfig)
ThumbnailAsideConfig *ThumbnailAsideConfig::self()
{
  if (!s_globalThumbnailAsideConfig()->q) {
    new ThumbnailAsideConfig;
    s_globalThumbnailAsideConfig()->q->read();
  }

  return s_globalThumbnailAsideConfig()->q;
}

ThumbnailAsideConfig::ThumbnailAsideConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalThumbnailAsideConfig()->q);
  s_globalThumbnailAsideConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-ThumbnailAside" ) );

  KConfigSkeleton::ItemInt  *itemMaxWidth;
  itemMaxWidth = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "MaxWidth" ), mMaxWidth, 200 );
  addItem( itemMaxWidth, QStringLiteral( "MaxWidth" ) );
  KConfigSkeleton::ItemInt  *itemSpacing;
  itemSpacing = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Spacing" ), mSpacing, 10 );
  addItem( itemSpacing, QStringLiteral( "Spacing" ) );
  KConfigSkeleton::ItemDouble  *itemOpacity;
  itemOpacity = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "Opacity" ), mOpacity, 50 );
  addItem( itemOpacity, QStringLiteral( "Opacity" ) );
  KConfigSkeleton::ItemInt  *itemScreen;
  itemScreen = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Screen" ), mScreen, -1 );
  addItem( itemScreen, QStringLiteral( "Screen" ) );
}

ThumbnailAsideConfig::~ThumbnailAsideConfig()
{
  s_globalThumbnailAsideConfig()->q = 0;
}

