diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1c6b40c4b4..8f7f4db778 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -171,6 +171,7 @@ set(dolphin_SRCS
panels/places/placesitemlistwidget.cpp
panels/places/placesitemmodel.cpp
panels/places/placesitemsignalhandler.cpp
+ panels/places/placesview.cpp
panels/panel.cpp
panels/folders/foldersitemlistwidget.cpp
panels/folders/treeviewcontextmenu.cpp
@@ -204,6 +205,7 @@ set(dolphin_SRCS
kde4_add_kcfg_files(dolphin_SRCS
panels/folders/dolphin_folderspanelsettings.kcfgc
panels/information/dolphin_informationpanelsettings.kcfgc
+ panels/places/dolphin_placespanelsettings.kcfgc
settings/dolphin_compactmodesettings.kcfgc
settings/dolphin_detailsmodesettings.kcfgc
settings/dolphin_generalsettings.kcfgc
diff --git a/src/panels/places/dolphin_placespanelsettings.kcfg b/src/panels/places/dolphin_placespanelsettings.kcfg
new file mode 100644
index 0000000000..b2ef8e5741
--- /dev/null
+++ b/src/panels/places/dolphin_placespanelsettings.kcfg
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+ -1
+
+
+
diff --git a/src/panels/places/dolphin_placespanelsettings.kcfgc b/src/panels/places/dolphin_placespanelsettings.kcfgc
new file mode 100644
index 0000000000..65a77ec34b
--- /dev/null
+++ b/src/panels/places/dolphin_placespanelsettings.kcfgc
@@ -0,0 +1,4 @@
+File=dolphin_placespanelsettings.kcfg
+ClassName=PlacesPanelSettings
+Singleton=true
+Mutators=true
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp
index 4b28c85102..a81b99770b 100644
--- a/src/panels/places/placespanel.cpp
+++ b/src/panels/places/placespanel.cpp
@@ -33,7 +33,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -42,6 +41,7 @@
#include "placesitemlistgroupheader.h"
#include "placesitemlistwidget.h"
#include "placesitemmodel.h"
+#include "placesview.h"
#include
#include
#include
@@ -94,7 +94,7 @@ void PlacesPanel::showEvent(QShowEvent* event)
connect(m_model, SIGNAL(errorMessage(QString)),
this, SIGNAL(errorMessage(QString)));
- KStandardItemListView* view = new KStandardItemListView();
+ PlacesView* view = new PlacesView();
view->setWidgetCreator(new KItemListWidgetCreator());
view->setGroupHeaderCreator(new KItemListGroupHeaderCreator());
diff --git a/src/panels/places/placesview.cpp b/src/panels/places/placesview.cpp
new file mode 100644
index 0000000000..dce5083d75
--- /dev/null
+++ b/src/panels/places/placesview.cpp
@@ -0,0 +1,35 @@
+/***************************************************************************
+ * Copyright (C) 2012 by Frank Reininghaus *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#include "placesview.h"
+
+#include "dolphin_placespanelsettings.h"
+
+PlacesView::PlacesView(QGraphicsWidget* parent) :
+ KStandardItemListView(parent)
+{
+ const int iconSize = PlacesPanelSettings::iconSize();
+ if (iconSize >= 0) {
+ KItemListStyleOption option = styleOption();
+ option.iconSize = iconSize;
+ setStyleOption(option);
+ }
+}
+
+#include "placesview.moc"
diff --git a/src/panels/places/placesview.h b/src/panels/places/placesview.h
new file mode 100644
index 0000000000..87eb3a50be
--- /dev/null
+++ b/src/panels/places/placesview.h
@@ -0,0 +1,38 @@
+/***************************************************************************
+ * Copyright (C) 2012 by Frank Reininghaus *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef PLACESVIEW_H
+#define PLACESVIEW_H
+
+#include
+
+/**
+ * @brief View class for the Places Panel.
+ *
+ * Reads the icon size from GeneralSettings::placesPanelIconSize().
+ */
+class PlacesView : public KStandardItemListView
+{
+ Q_OBJECT
+
+public:
+ explicit PlacesView(QGraphicsWidget* parent = 0);
+};
+
+#endif