qt5base-lts/examples/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
..
addressbook CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
basicsortfiltermodel CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
chart Replace QAbstractItemView::viewOptions with initViewItemOption 2020-08-26 18:02:58 +02:00
coloreditorfactory CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
combowidgetmapper CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
customsortfiltermodel CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
dirview CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
editabletreemodel CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
fetchmore CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
flattreeview CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
frozencolumn CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
interview CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
pixelator CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
puzzle Disentangle QIODevice dependencies 2020-08-15 20:55:31 +02:00
simpledommodel CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
simpletreemodel CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
simplewidgetmapper CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
spinboxdelegate CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
spreadsheet CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
stardelegate CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
storageview CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
.prev_CMakeLists.txt CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
CMakeLists.txt CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
itemviews.pro Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

Item views are widgets that typically display data sets. Qt 4's model/view
framework lets you handle large data sets by separating the underlying data
from the way it is represented to the user, and provides support for
customized rendering through the use of delegates.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.