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

#include "sieveeditorglobalconfig.h"

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

class SieveEditorGlobalConfigHelper
{
  public:
    SieveEditorGlobalConfigHelper() : q(nullptr) {}
    ~SieveEditorGlobalConfigHelper() { delete q; }
    SieveEditorGlobalConfigHelper(const SieveEditorGlobalConfigHelper&) = delete;
    SieveEditorGlobalConfigHelper& operator=(const SieveEditorGlobalConfigHelper&) = delete;
    SieveEditorGlobalConfig *q;
};
Q_GLOBAL_STATIC(SieveEditorGlobalConfigHelper, s_globalSieveEditorGlobalConfig)
SieveEditorGlobalConfig *SieveEditorGlobalConfig::self()
{
  if (!s_globalSieveEditorGlobalConfig()->q) {
    new SieveEditorGlobalConfig;
    s_globalSieveEditorGlobalConfig()->q->read();
  }

  return s_globalSieveEditorGlobalConfig()->q;
}

SieveEditorGlobalConfig::SieveEditorGlobalConfig( )
  : KConfigSkeleton()
{
  Q_ASSERT(!s_globalSieveEditorGlobalConfig()->q);
  s_globalSieveEditorGlobalConfig()->q = this;
  setCurrentGroup( QStringLiteral( "Editor" ) );

  mWrapTextItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "WrapText" ), mWrapText, false );
  addItem( mWrapTextItem, QStringLiteral( "WrapText" ) );
}

SieveEditorGlobalConfig::~SieveEditorGlobalConfig()
{
  s_globalSieveEditorGlobalConfig()->q = nullptr;
}

