qt5base-lts/examples/widgets
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
..
animation Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
desktop CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
dialogs CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
doc macOS: rename 'macintosh' style to 'macos' 2020-08-26 16:37:43 +02:00
draganddrop CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
effects CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
gallery Move QStringRef and remains to Qt5Compat 2020-08-20 00:58:13 +02:00
gestures CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
graphicsview Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
itemviews Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
layouts CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
mainwindows Move QStringRef and remains to Qt5Compat 2020-08-20 00:58:13 +02:00
painting Move QStringRef and remains to Qt5Compat 2020-08-20 00:58:13 +02:00
qnx/foreignwindows Use QList instead of QVector in statemachine 2020-07-06 14:06:13 +02:00
richtext CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
scroller CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
tools Deprecate the static int based API in QMetaType 2020-08-24 00:19:05 +02:00
touch CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
tutorials CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
widgets CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
windowcontainer CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
widgets.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00