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

#include "LayoutSettings.h"

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

class LayoutSettingsHelper
{
  public:
    LayoutSettingsHelper() : q(nullptr) {}
    ~LayoutSettingsHelper() { delete q; }
    LayoutSettings *q;
};
Q_GLOBAL_STATIC(LayoutSettingsHelper, s_globalLayoutSettings)
LayoutSettings *LayoutSettings::self()
{
  if (!s_globalLayoutSettings()->q) {
    new LayoutSettings;
    s_globalLayoutSettings()->q->read();
  }

  return s_globalLayoutSettings()->q;
}

LayoutSettings::LayoutSettings(  )
  : KConfigSkeleton( QStringLiteral( "device_automounter_kcmrc" ) )
{
  Q_ASSERT(!s_globalLayoutSettings()->q);
  s_globalLayoutSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Layout" ) );

  QList<int> defaultHeaderWidths;

  KConfigSkeleton::ItemIntList  *itemHeaderWidths;
  itemHeaderWidths = new KConfigSkeleton::ItemIntList( currentGroup(), QStringLiteral( "HeaderWidths" ), mHeaderWidths, defaultHeaderWidths );
  addItem( itemHeaderWidths, QStringLiteral( "HeaderWidths" ) );
  KConfigSkeleton::ItemBool  *itemAttachedExpanded;
  itemAttachedExpanded = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "AttachedExpanded" ), mAttachedExpanded, true );
  addItem( itemAttachedExpanded, QStringLiteral( "AttachedExpanded" ) );
  KConfigSkeleton::ItemBool  *itemDetatchedExpanded;
  itemDetatchedExpanded = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "DetatchedExpanded" ), mDetatchedExpanded, false );
  addItem( itemDetatchedExpanded, QStringLiteral( "DetatchedExpanded" ) );
}

LayoutSettings::~LayoutSettings()
{
  s_globalLayoutSettings()->q = nullptr;
}

