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

#include "trackmouseconfig.h"

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

using namespace KWin;

namespace KWin {

class TrackMouseConfigHelper
{
  public:
    TrackMouseConfigHelper() : q(0) {}
    ~TrackMouseConfigHelper() { delete q; }
    TrackMouseConfig *q;
};
}

Q_GLOBAL_STATIC(TrackMouseConfigHelper, s_globalTrackMouseConfig)
TrackMouseConfig *TrackMouseConfig::self()
{
  if (!s_globalTrackMouseConfig()->q) {
    new TrackMouseConfig;
    s_globalTrackMouseConfig()->q->read();
  }

  return s_globalTrackMouseConfig()->q;
}

TrackMouseConfig::TrackMouseConfig(  )
  : KConfigSkeleton( QStringLiteral( "kwinrc" ) )
{
  Q_ASSERT(!s_globalTrackMouseConfig()->q);
  s_globalTrackMouseConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Effect-TrackMouse" ) );

  KConfigSkeleton::ItemBool  *itemMeta;
  itemMeta = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Meta" ), mMeta, true );
  addItem( itemMeta, QStringLiteral( "Meta" ) );
  KConfigSkeleton::ItemBool  *itemControl;
  itemControl = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Control" ), mControl, true );
  addItem( itemControl, QStringLiteral( "Control" ) );
  KConfigSkeleton::ItemBool  *itemAlt;
  itemAlt = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Alt" ), mAlt, false );
  addItem( itemAlt, QStringLiteral( "Alt" ) );
  KConfigSkeleton::ItemBool  *itemShift;
  itemShift = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Shift" ), mShift, false );
  addItem( itemShift, QStringLiteral( "Shift" ) );
}

TrackMouseConfig::~TrackMouseConfig()
{
  s_globalTrackMouseConfig()->q = 0;
}

