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

#include "workspaceoptions_kdeglobalssettings.h"

WorkspaceOptionsGlobalsSettings::WorkspaceOptionsGlobalsSettings( QObject *parent )
  : KConfigSkeleton( QStringLiteral( "kdeglobals" ) )
{
  setParent(parent);
  KConfigCompilerSignallingItem::NotifyFunction notifyFunction = static_cast<KConfigCompilerSignallingItem::NotifyFunction>(&WorkspaceOptionsGlobalsSettings::itemChanged);

  setCurrentGroup( QStringLiteral( "KDE" ) );

  KConfigCompilerSignallingItem  *itemSingleClick;
  KConfigSkeleton::ItemBool  *innerItemSingleClick;
  innerItemSingleClick = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "SingleClick" ), mSingleClick, true );
  itemSingleClick = new KConfigCompilerSignallingItem(innerItemSingleClick, this, notifyFunction, signalSingleClickChanged);
  addItem( itemSingleClick, QStringLiteral( "singleClick" ) );
  KConfigCompilerSignallingItem  *itemAnimationDurationFactor;
  KConfigSkeleton::ItemDouble  *innerItemAnimationDurationFactor;
  innerItemAnimationDurationFactor = new KConfigSkeleton::ItemDouble( currentGroup(), QStringLiteral( "AnimationDurationFactor" ), mAnimationDurationFactor, 1.0 );
  itemAnimationDurationFactor = new KConfigCompilerSignallingItem(innerItemAnimationDurationFactor, this, notifyFunction, signalAnimationDurationFactorChanged);
  itemAnimationDurationFactor->setWriteFlags(KConfigBase::Notify);
  addItem( itemAnimationDurationFactor, QStringLiteral( "animationDurationFactor" ) );
  KConfigCompilerSignallingItem  *itemScrollbarLeftClickNavigatesByPage;
  KConfigSkeleton::ItemBool  *innerItemScrollbarLeftClickNavigatesByPage;
  innerItemScrollbarLeftClickNavigatesByPage = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "ScrollbarLeftClickNavigatesByPage" ), mScrollbarLeftClickNavigatesByPage, true );
  itemScrollbarLeftClickNavigatesByPage = new KConfigCompilerSignallingItem(innerItemScrollbarLeftClickNavigatesByPage, this, notifyFunction, signalScrollbarLeftClickNavigatesByPageChanged);
  itemScrollbarLeftClickNavigatesByPage->setWriteFlags(KConfigBase::Notify);
  addItem( itemScrollbarLeftClickNavigatesByPage, QStringLiteral( "scrollbarLeftClickNavigatesByPage" ) );
}

bool WorkspaceOptionsGlobalsSettings::defaultSingleClickValue_helper() const
{

  return true;
}

double WorkspaceOptionsGlobalsSettings::defaultAnimationDurationFactorValue_helper() const
{

  return 1.0;
}

bool WorkspaceOptionsGlobalsSettings::defaultScrollbarLeftClickNavigatesByPageValue_helper() const
{

  return true;
}

WorkspaceOptionsGlobalsSettings::~WorkspaceOptionsGlobalsSettings()
{
}


void WorkspaceOptionsGlobalsSettings::itemChanged(quint64 flags) {

  if ( flags & signalSingleClickChanged ) {
    Q_EMIT singleClickChanged();
  }
  if ( flags & signalAnimationDurationFactorChanged ) {
    Q_EMIT animationDurationFactorChanged();
  }
  if ( flags & signalScrollbarLeftClickNavigatesByPageChanged ) {
    Q_EMIT scrollbarLeftClickNavigatesByPageChanged();
  }
}

#include "workspaceoptions_kdeglobalssettings.moc"

