]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Move the call "setUniformRowHeights(true)" from DolphinDetailsView's
authorFrank Reininghaus <frank78ac@googlemail.com>
Sat, 15 Jan 2011 23:08:23 +0000 (23:08 +0000)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sat, 15 Jan 2011 23:08:23 +0000 (23:08 +0000)
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
src/views/dolphintreeview.cpp

index d825153f3215af921c6460096a2a3d94ff0050d9..d434a4b3d2ec1f0d35b6a629fe11cfdff017c3a9 100644 (file)
@@ -66,7 +66,6 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent,
     setLayoutDirection(Qt::LeftToRight);
     setAcceptDrops(true);
     setSortingEnabled(true);
-    setUniformRowHeights(true);
     setSelectionBehavior(SelectItems);
     setDragDropMode(QAbstractItemView::DragDrop);
     setDropIndicatorShown(false);
index 698b99f591dfeade103ac29a31a835c27cc44525..9e7af0dab8c8ae7d2f5237c58c4fe064a4a8bc2f 100644 (file)
@@ -38,6 +38,7 @@ DolphinTreeView::DolphinTreeView(QWidget* parent) :
     m_dropRect(),
     m_band()
 {
+    setUniformRowHeights(true);
 }
 
 DolphinTreeView::~DolphinTreeView()