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

#include "dolphin_placespanelsettings.h"

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

class PlacesPanelSettingsHelper
{
  public:
    PlacesPanelSettingsHelper() : q(0) {}
    ~PlacesPanelSettingsHelper() { delete q; }
    PlacesPanelSettings *q;
};
K_GLOBAL_STATIC(PlacesPanelSettingsHelper, s_globalPlacesPanelSettings)
PlacesPanelSettings *PlacesPanelSettings::self()
{
  if (!s_globalPlacesPanelSettings->q) {
    new PlacesPanelSettings;
    s_globalPlacesPanelSettings->q->readConfig();
  }

  return s_globalPlacesPanelSettings->q;
}

PlacesPanelSettings::PlacesPanelSettings(  )
  : KConfigSkeleton( QLatin1String( "dolphinrc" ) )
{
  Q_ASSERT(!s_globalPlacesPanelSettings->q);
  s_globalPlacesPanelSettings->q = this;
  setCurrentGroup( QLatin1String( "PlacesPanel" ) );

  KConfigSkeleton::ItemInt  *itemIconSize;
  itemIconSize = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "IconSize" ), mIconSize, -1 );
  addItem( itemIconSize, QLatin1String( "IconSize" ) );
}

PlacesPanelSettings::~PlacesPanelSettings()
{
  if (!s_globalPlacesPanelSettings.isDestroyed()) {
    s_globalPlacesPanelSettings->q = 0;
  }
}

