┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-20 16:58:59 +0000
committerPeter Penz <[email protected]>2008-03-20 16:58:59 +0000
commita8ada5e6857d6dec25edf8ef57af9f27a91471c1 (patch)
treecd76cdcbae8e02405c9d4fb768d51b04384109d6 /src/dolphinview.h
parentf738a9ff2ba3a71a6015d388c835ffa7c7e0be02 (diff)
QListView does not support having a margin for grids. Originally it has been tried to bypass this by overwriting QListView::visualRect(), but this has some side effects (see #155378 and #155575). The clean approach is to return a proper size hint in the file item delegate.
Currently a custom item delegate has been made for Dolphin, but we'll discuss whether it makes sense providing this feature already in KFileItemDelegate... BUG: 155378 BUG: 155575 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=788095
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index 4f2964761..f7d95c6e2 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -41,6 +41,7 @@
class DolphinController;
class DolphinColumnView;
class DolphinDetailsView;
+class DolphinFileItemDelegate;
class DolphinIconsView;
class DolphinMainWindow;
class DolphinModel;
@@ -635,7 +636,7 @@ private:
DolphinIconsView* m_iconsView;
DolphinDetailsView* m_detailsView;
DolphinColumnView* m_columnView;
- KFileItemDelegate* m_fileItemDelegate;
+ DolphinFileItemDelegate* m_fileItemDelegate;
QItemSelectionModel* m_selectionModel;
DolphinModel* m_dolphinModel;