From: Frank Reininghaus Date: Sat, 15 Jan 2011 23:08:23 +0000 (+0000) Subject: Move the call "setUniformRowHeights(true)" from DolphinDetailsView's X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/732b46e39ace58b3f429307a4b2af707a96faef5 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 --- 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()