┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-10-15 21:23:42 +0000
committerPeter Penz <[email protected]>2008-10-15 21:23:42 +0000
commit994095076cccdb703b2bb285d4118bd9c654fd93 (patch)
treee995c1e81df37ff024c01d1a84765b9b48e6baeb /src/dolphinview.cpp
parentd6a2d5594fc7dd95e0b4d6c993672de706d3bba5 (diff)
Assure that the item delegate draws the hover effect and the selection for the details view only above the icon + name. Open issue: The performance when selecting files by the rubberband is too slow (will be fixed before KDE 4.2).
CCBUG: 165999 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=871874
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 2c4efca60..d0e1b8bd2 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -31,7 +31,6 @@
#include <kactioncollection.h>
#include <kcolorscheme.h>
#include <kdirlister.h>
-#include <kfileitemdelegate.h>
#include <kfilepreviewgenerator.h>
#include <kiconeffect.h>
#include <klocale.h>
@@ -52,6 +51,7 @@
#include "dolphinmodel.h"
#include "dolphincolumnview.h"
#include "dolphincontroller.h"
+#include "dolphinfileitemdelegate.h"
#include "dolphinsortfilterproxymodel.h"
#include "dolphindetailsview.h"
#include "dolphin_detailsmodesettings.h"
@@ -1209,8 +1209,9 @@ void DolphinView::createView()
m_controller->setItemView(view);
- m_fileItemDelegate = new KFileItemDelegate(view);
+ m_fileItemDelegate = new DolphinFileItemDelegate(view);
m_fileItemDelegate->setShowToolTipWhenElided(false);
+ m_fileItemDelegate->setMinimizedNameColumn(m_mode == DetailsView);
view->setItemDelegate(m_fileItemDelegate);
view->setModel(m_proxyModel);