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

#include "mousemarkconfig.h"

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

using namespace KWin;

namespace KWin {

class MouseMarkConfigHelper
{
  public:
    MouseMarkConfigHelper() : q(0) {}
    ~MouseMarkConfigHelper() { delete q; }
    MouseMarkConfig *q;
};
}

Q_GLOBAL_STATIC(MouseMarkConfigHelper, s_globalMouseMarkConfig)
MouseMarkConfig *MouseMarkConfig::self()
{
  if (!s_globalMouseMarkConfig()->q) {
    new MouseMarkConfig;
    s_globalMouseMarkConfig()->q->read();
  }

  return s_globalMouseMarkConfig()->q;
}

MouseMarkConfig::MouseMarkConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalMouseMarkConfig()->q);
  s_globalMouseMarkConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-MouseMark" ) );

  KConfigSkeleton::ItemUInt  *itemLineWidth;
  itemLineWidth = new KConfigSkeleton::ItemUInt( currentGroup(), QStringLiteral( "LineWidth" ), mLineWidth, 3 );
  addItem( itemLineWidth, QStringLiteral( "LineWidth" ) );
  KConfigSkeleton::ItemColor  *itemColor;
  itemColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "Color" ), mColor, QColor( 255,0,0 ) );
  addItem( itemColor, QStringLiteral( "Color" ) );
}

MouseMarkConfig::~MouseMarkConfig()
{
  s_globalMouseMarkConfig()->q = 0;
}

