From 732b46e39ace58b3f429307a4b2af707a96faef5 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sat, 15 Jan 2011 23:08:23 +0000 Subject: Move the call "setUniformRowHeights(true)" from DolphinDetailsView's constructor to the one of its base class DolphinTreeView. The reason is that DolphinTreeView::updateElasticBandSelection() contains "Q_ASSERT(uniformRowHeights())", so it makes sense to ensure that every DolphinTreeView has uniform row heights. This might be important for unit tests which use DolphinTreeView directly. svn path=/trunk/KDE/kdebase/apps/; revision=1214695 --- src/views/dolphindetailsview.cpp | 1 - src/views/dolphintreeview.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/views/dolphindetailsview.cpp b/src/views/dolphindetailsview.cpp index d825153f3..d434a4b3d 100644 --- a/src/views/dolphindetailsview.cpp +++ b/src/views/dolphindetailsview.cpp @@ -66,7 +66,6 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, setLayoutDirection(Qt::LeftToRight); setAcceptDrops(true); setSortingEnabled(true); - setUniformRowHeights(true); setSelectionBehavior(SelectItems); setDragDropMode(QAbstractItemView::DragDrop); setDropIndicatorShown(false); diff --git a/src/views/dolphintreeview.cpp b/src/views/dolphintreeview.cpp index 698b99f59..9e7af0dab 100644 --- a/src/views/dolphintreeview.cpp +++ b/src/views/dolphintreeview.cpp @@ -38,6 +38,7 @@ DolphinTreeView::DolphinTreeView(QWidget* parent) : m_dropRect(), m_band() { + setUniformRowHeights(true); } DolphinTreeView::~DolphinTreeView() -- cgit v1.3