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/qtableview_p.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/widgets/itemviews/qtableview_p.h') diff --git a/src/widgets/itemviews/qtableview_p.h b/src/widgets/itemviews/qtableview_p.h index 74eb7b7728..555ae50daf 100644 --- a/src/widgets/itemviews/qtableview_p.h +++ b/src/widgets/itemviews/qtableview_p.h @@ -150,8 +150,6 @@ public: void init(); void trimHiddenSelections(QItemSelectionRange *range) const; - QStyleOptionViewItem viewOptions() const; - inline bool isHidden(int row, int col) const { return verticalHeader->isSectionHidden(row) || horizontalHeader->isSectionHidden(col); -- cgit v1.2.3