c501e09efa
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> |
||
---|---|---|
.. | ||
addressbook | ||
basicsortfiltermodel | ||
chart | ||
coloreditorfactory | ||
combowidgetmapper | ||
customsortfiltermodel | ||
dirview | ||
editabletreemodel | ||
fetchmore | ||
flattreeview | ||
frozencolumn | ||
interview | ||
pixelator | ||
puzzle | ||
simpledommodel | ||
simpletreemodel | ||
simplewidgetmapper | ||
spinboxdelegate | ||
spreadsheet | ||
stardelegate | ||
storageview | ||
.prev_CMakeLists.txt | ||
CMakeLists.txt | ||
itemviews.pro | ||
README |
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.