Commit 88aecb18 authored by Peter Penz's avatar Peter Penz
Browse files

don't hardcode the spacing...

svn path=/trunk/KDE/kdebase/apps/; revision=676762
parent 2e2538bf
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include "dolphin_iconsmodesettings.h" #include "dolphin_iconsmodesettings.h"
#include <kdialog.h>
#include <QAbstractProxyModel> #include <QAbstractProxyModel>
#include <QApplication> #include <QApplication>
#include <QPainter> #include <QPainter>
...@@ -38,7 +40,7 @@ DolphinIconsView::DolphinIconsView(QWidget* parent, DolphinController* controlle ...@@ -38,7 +40,7 @@ DolphinIconsView::DolphinIconsView(QWidget* parent, DolphinController* controlle
Q_ASSERT(controller != 0); Q_ASSERT(controller != 0);
setViewMode(QListView::IconMode); setViewMode(QListView::IconMode);
setResizeMode(QListView::Adjust); setResizeMode(QListView::Adjust);
setSpacing(10); setSpacing(KDialog::spacingHint());
setMouseTracking(true); setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover); viewport()->setAttribute(Qt::WA_Hover);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment