qt6-bb10/tests/auto/widgets/itemviews
Volker Hilsheimer c501e09efa Replace QAbstractItemView::viewOptions with initViewItemOption
viewOptions returned a QStyleOptionViewItem object. Such a method
can never support newer versions of the option structure.

Most styleable QWidget classes provide a virtual method
initStyleOption that initializes the option object passed in as a
pointer, e.g QFrame, QAbstractSpinBox, or QComboBox.

Follow that API convention, but name it initViewItemOption, as the
QStyleOptionViewItem struct contains information about the item as
well as the widget itelf.

This is a source incompatible change that will go unnoticed unless
existing subclasses mark their overrides as 'override', or call
the removed QAbstractItemView::viewOption virtual function.

[ChangeLog][QtWidgets][QAbstractItemView] The virtual viewOptions
method that previously returned a QStyleOptionViewItem object has
been renamed to initViewItemOption, and initializes a
QStyleOptionViewItem object that's passed in through a pointer.

Change-Id: Ie058702aed42d77274fa3c4abb43ba302e57e348
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2020-08-26 18:02:58 +02:00
..
qabstractitemview Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
qcolumnview CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qdatawidgetmapper CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qfileiconprovider CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qheaderview CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qitemdelegate Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
qitemeditorfactory CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qitemview CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qlistview Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
qlistwidget CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtableview Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
qtablewidget CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtreeview Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
qtreewidget Use the new support for comparisons in QMetaType for QVariant 2020-08-13 08:48:03 +02:00
qtreewidgetitemiterator CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
itemviews.pro Remove the deprecated QDirModel 2020-06-04 19:11:19 +02:00