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

#include "keyboardmiscsettings.h"

KeyboardMiscSettings::KeyboardMiscSettings( QObject *parent )
  : KConfigSkeleton( QStringLiteral( "kcminputrc" ) )
{
  setParent(parent);
  setCurrentGroup( QStringLiteral( "Keyboard" ) );

  KConfigSkeleton::ItemString  *itemKeyboardRepeat;
  itemKeyboardRepeat = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "KeyRepeat" ), mKeyboardRepeat, qgetenv("QT_IM_MODULE") == "plasmaim" ? QStringLiteral("accent") : QStringLiteral("repeat") );
  itemKeyboardRepeat->setWriteFlags(KConfigBase::Notify);
  addItem( itemKeyboardRepeat, QStringLiteral( "keyboardRepeat" ) );
  KConfigSkeleton::ItemInt  *itemNumLock;
  itemNumLock = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "NumLock" ), mNumLock, 2 );
  addItem( itemNumLock, QStringLiteral( "numLock" ) );
  KConfigSkeleton::ItemInt  *itemRepeatDelay;
  itemRepeatDelay = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "RepeatDelay" ), mRepeatDelay, 600 );
  itemRepeatDelay->setMinValue(100);
  itemRepeatDelay->setMaxValue(5000);
  itemRepeatDelay->setWriteFlags(KConfigBase::Notify);
  addItem( itemRepeatDelay, QStringLiteral( "repeatDelay" ) );
  KConfigSkeleton::ItemDouble  *itemRepeatRate;
  itemRepeatRate = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "RepeatRate" ), mRepeatRate, 25.0 );
  itemRepeatRate->setMinValue(0.2);
  itemRepeatRate->setMaxValue(100);
  itemRepeatRate->setWriteFlags(KConfigBase::Notify);
  addItem( itemRepeatRate, QStringLiteral( "repeatRate" ) );
}

QString KeyboardMiscSettings::defaultKeyboardRepeatValue_helper() const
{

  return qgetenv("QT_IM_MODULE") == "plasmaim" ? QStringLiteral("accent") : QStringLiteral("repeat");
}

int KeyboardMiscSettings::defaultNumLockValue_helper() const
{

  return 2;
}

int KeyboardMiscSettings::defaultRepeatDelayValue_helper() const
{

  return 600;
}

double KeyboardMiscSettings::defaultRepeatRateValue_helper() const
{

  return 25.0;
}

KeyboardMiscSettings::~KeyboardMiscSettings()
{
}

