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

#include "pocreatorsettings.h"

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

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

  return s_globalPoCreatorSettings()->q;
}

PoCreatorSettings::PoCreatorSettings( )
  : KConfigSkeleton( QStringLiteral( "pocreatorrc" ) )
{
  Q_ASSERT(!s_globalPoCreatorSettings()->q);
  s_globalPoCreatorSettings()->q = this;
  setCurrentGroup( QStringLiteral( "General" ) );

  KConfigSkeleton::ItemColor  *itemTranslatedColor;
  itemTranslatedColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "TranslatedColor" ), mTranslatedColor, Qt::darkGreen );
  addItem( itemTranslatedColor, QStringLiteral( "TranslatedColor" ) );
  KConfigSkeleton::ItemColor  *itemFuzzyColor;
  itemFuzzyColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "FuzzyColor" ), mFuzzyColor, Qt::blue );
  addItem( itemFuzzyColor, QStringLiteral( "FuzzyColor" ) );
  KConfigSkeleton::ItemColor  *itemUntranslatedColor;
  itemUntranslatedColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "UntranslatedColor" ), mUntranslatedColor, Qt::red );
  addItem( itemUntranslatedColor, QStringLiteral( "UntranslatedColor" ) );
  KConfigSkeleton::ItemColor  *itemObsoletedColor;
  itemObsoletedColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "ObsoletedColor" ), mObsoletedColor, Qt::yellow );
  addItem( itemObsoletedColor, QStringLiteral( "ObsoletedColor" ) );
}

PoCreatorSettings::~PoCreatorSettings()
{
  if (s_globalPoCreatorSettings.exists() && !s_globalPoCreatorSettings.isDestroyed()) {
    s_globalPoCreatorSettings()->q = nullptr;
  }
}

