From b329c8ffb960da492d90c7bf70ed93f23fa2d400 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Thu, 17 Oct 2013 14:10:46 +0200 Subject: Move the viewOptions code back to public implementation The code generating the QStyleOptionViewItem has been moved back to the public implementation and the private QAbstractItemView::viewOptions calling it (like the Qt 4 implementation does). This makes the item views behave properly again e.g. QListView drag & drop in Icon mode gets the correct options to draw the moving items Task-number: QTBUG-1180 Change-Id: I068861e1485252f12d73f9acaf12933d0ec84e2c Reviewed-by: Stephen Kelly --- src/widgets/itemviews/qlistview_p.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/widgets/itemviews/qlistview_p.h') diff --git a/src/widgets/itemviews/qlistview_p.h b/src/widgets/itemviews/qlistview_p.h index 3d39061bdb..2edbbaae19 100644 --- a/src/widgets/itemviews/qlistview_p.h +++ b/src/widgets/itemviews/qlistview_p.h @@ -391,8 +391,6 @@ public: } } - QStyleOptionViewItem viewOptions() const; - void scrollElasticBandBy(int dx, int dy); QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const; -- cgit v1.2.3