┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesview.cpp
diff options
context:
space:
mode:
authorDawit Alemayehu <[email protected]>2012-09-27 17:48:56 -0400
committerDawit Alemayehu <[email protected]>2012-09-27 17:48:56 -0400
commitb7a8327c305e3d5bd92bb79889fafc2a75a82adb (patch)
treef7c49868126002c9af3bffc044e4985c026405de /src/panels/places/placesview.cpp
parent814611ca366f1abc6cbc31433511a3b619ea0e66 (diff)
parent9b01d1bcc1ddeffd3f59cee73341ec440ef6f1e0 (diff)
Merge branch '4.9'
Diffstat (limited to 'src/panels/places/placesview.cpp')
-rw-r--r--src/panels/places/placesview.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/panels/places/placesview.cpp b/src/panels/places/placesview.cpp
new file mode 100644
index 000000000..dce5083d7
--- /dev/null
+++ b/src/panels/places/placesview.cpp
@@ -0,0 +1,35 @@
+/***************************************************************************
+ * Copyright (C) 2012 by Frank Reininghaus <[email protected]> *
+ * *
+ * 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"