summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-11-08 13:53:26 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-09 15:42:49 +0100
commitc819a8926959ecadfe2e588e28918ed6fb90ce5d (patch)
tree51dc53854ec590a8001dbb879055644240501f74 /src/widgets/itemviews/qabstractitemview.cpp
parentef6544ee27aeab20a64b4df4bd50401cefa405ef (diff)
Document the BC break of viewportSizeHint() in itemviews
Since users were not supposed to use this feature at all, just live with the BC break, but document it. In order to prevent possible problems in the future, introduce dummy overrides in QAbstractItemView and QListView as well. Also, fix the visibility of the overrides (it's protected, not public). Task-number: QTBUG-34667 Change-Id: Ib4554ae5e1e7d3ce4ea8e8703e1fea9e2231edb0 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview.cpp')
-rw-r--r--src/widgets/itemviews/qabstractitemview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qabstractitemview.cpp b/src/widgets/itemviews/qabstractitemview.cpp
index fd704e479b..7edad74f54 100644
--- a/src/widgets/itemviews/qabstractitemview.cpp
+++ b/src/widgets/itemviews/qabstractitemview.cpp
@@ -1391,6 +1391,15 @@ bool QAbstractItemView::showDropIndicator() const
}
/*!
+ \since 5.2
+ \reimp
+*/
+QSize QAbstractItemView::viewportSizeHint() const
+{
+ return QAbstractScrollArea::viewportSizeHint();
+}
+
+/*!
\property QAbstractItemView::dragEnabled
\brief whether the view supports dragging of its own items