qt5base-lts/tests/auto/widgets/itemviews
Gabriel de Dietrich 9e8c84aa14 Add SH_ItemView_ScrollMode style hint and use it in QMacStyle
On OS X, the default scrolling mode of item views should be
per pixel instead of per item. We enforce this through a new
style hint. On all other platforms, the behavior remains the
same.

It's still possible to override the style hint by using the
regular scroll mode setters. Any subsequent style change will
result in a no-op once the setters have been called and until
the properties are reset.

Some auto-tests had to be update to to take the new behavior
into account.

[ChangeLog][QtWidgets][Styles] Added SH_ItemView_ScrollMode
style hint.

[ChangeLog][QtWidgets][Item Views] Item views scroll per pixel
on OS X now.

[ChangeLog][QtWidgets][Item Views] QAbstractItemView::verticalScrollMode
and QAbstractItemView::horizontalScrollMode are now resettable.

Change-Id: I3f923275c99aa4389323b52fc1c5455fe71f8d73
Task-number: QTBUG-50102
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-02-11 04:50:36 +00:00
..
qabstractitemview Add SH_ItemView_ScrollMode style hint and use it in QMacStyle 2016-02-11 04:50:36 +00:00
qcolumnview Updated license headers 2016-01-21 18:55:18 +00:00
qdatawidgetmapper Updated license headers 2016-01-21 18:55:18 +00:00
qdirmodel Updated license headers 2016-01-21 18:55:18 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview Updated license headers 2016-01-21 18:55:18 +00:00
qitemdelegate Updated license headers 2016-01-21 18:55:18 +00:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Updated license headers 2016-01-21 18:55:18 +00:00
qlistview Add SH_ItemView_ScrollMode style hint and use it in QMacStyle 2016-02-11 04:50:36 +00:00
qlistwidget Updated license headers 2016-01-21 18:55:18 +00:00
qtableview Updated license headers 2016-01-21 18:55:18 +00:00
qtablewidget Updated license headers 2016-01-21 18:55:18 +00:00
qtreeview Add SH_ItemView_ScrollMode style hint and use it in QMacStyle 2016-02-11 04:50:36 +00:00
qtreewidget Updated license headers 2016-01-21 18:55:18 +00:00
qtreewidgetitemiterator Updated license headers 2016-01-21 18:55:18 +00:00
itemviews.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00