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

#include "prefs.h"

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

class PrefsHelper
{
  public:
    PrefsHelper() : q(0) {}
    ~PrefsHelper() { delete q; }
    Prefs *q;
};
Q_GLOBAL_STATIC(PrefsHelper, s_globalPrefs)
Prefs *Prefs::self()
{
  if (!s_globalPrefs()->q) {
    new Prefs;
    s_globalPrefs()->q->read();
  }

  return s_globalPrefs()->q;
}

Prefs::Prefs(  )
  : KConfigSkeleton( QLatin1String( "klinesrc" ) )
{
  Q_ASSERT(!s_globalPrefs()->q);
  s_globalPrefs()->q = this;
  setCurrentGroup( QLatin1String( "Game" ) );

  KConfigSkeleton::ItemBool  *itemShowNext;
  itemShowNext = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "ShowNext" ), mShowNext, true );
  addItem( itemShowNext, QLatin1String( "ShowNext" ) );
  KConfigSkeleton::ItemInt  *itemSavedBackgroundWidth;
  itemSavedBackgroundWidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SavedBackgroundWidth" ), mSavedBackgroundWidth, -1 );
  addItem( itemSavedBackgroundWidth, QLatin1String( "SavedBackgroundWidth" ) );
  KConfigSkeleton::ItemInt  *itemSavedBackgroundHeight;
  itemSavedBackgroundHeight = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "SavedBackgroundHeight" ), mSavedBackgroundHeight, -1 );
  addItem( itemSavedBackgroundHeight, QLatin1String( "SavedBackgroundHeight" ) );
}

Prefs::~Prefs()
{
  s_globalPrefs()->q = 0;
}

