]> cloud.milkyroute.net Git - dolphin.git/commit
QListView does not support having a margin for grids. Originally it has been tried...
authorPeter Penz <peter.penz19@gmail.com>
Thu, 20 Mar 2008 16:58:59 +0000 (16:58 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 20 Mar 2008 16:58:59 +0000 (16:58 +0000)
commita8ada5e6857d6dec25edf8ef57af9f27a91471c1
treecd76cdcbae8e02405c9d4fb768d51b04384109d6
parentf738a9ff2ba3a71a6015d388c835ffa7c7e0be02
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: fredrik@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=788095
src/CMakeLists.txt
src/dolphinfileitemdelegate.cpp [new file with mode: 0644]
src/dolphinfileitemdelegate.h [new file with mode: 0644]
src/dolphiniconsview.cpp
src/dolphiniconsview.h
src/dolphinview.cpp
src/dolphinview.h