summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/qitemdelegate/spinbox-delegate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use QModelIndex::data()Albert Astals Cid2024-06-211-1/+1
| | | | | | | | | | idx.data(role) is much nicer to read than idx.model()->data(idx, role) As a drive-by, mark some QVariants const. Pick-to: 6.8 Change-Id: I00c0a5ac311a03095050b2542a5c396a6c1c2c6a Reviewed-by: Marc Mutz <[email protected]>
* Turn SpinBox Delegate example into snippetsVolker Hilsheimer2023-12-201-0/+79
The essence of the example was already fully quoted in the model/view documentation. Move the code into a snippet source, and update the screenshot. Fixes: QTBUG-119976 Pick-to: 6.7 6.6 Change-Id: Id2f10bb26a650419969bbfa9b76cb74babd3319e Reviewed-by: Richard Moe Gustavsen <[email protected]> Reviewed-by: Andreas Eliasson <[email protected]>