qt5base-lts/tests/auto/widgets
Thorbjørn Lund Martsum 934f062203 QAIV - Fix scollbars with ScrollPerPixel to scroll 1 pixel.
The documentation says that we scroll one pixel

Quote:
"QAbstractItemView::ScrollPerPixel  (value 1)"
"The view will scroll the contents one pixel at a time."

However until now Qt has tried to be smarter than the
documentation, but is actually getting in the way of the user,
where a manual set value to setSingleStep will continuingly
be overwritten (on e.g resize).

This patch ensures the behavior described in the documentation
for the vertical headers - and leaves the control to the user.

[ChangeLog][QtWidgets][QAbstractItemView]  QTBUG-7232 - In ItemViews
scrollbars will now by default only scroll 1 pixel when scrollMode
is set to scrollPerPixel. That is it will (when scrollMode is
scrollPerPixel) do what is stated in the documentation, and no
longer automatically adjust the scrollbars singleStep. The user
can now control that value.

Task-number: QTBUG-7232

Change-Id: I8a61d3100be65d0c4ee32aad58caed019aa2669c
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2013-08-26 09:40:59 +02:00
..
dialogs Move SnapToDefaultButton from QPlatformDialogHelper to QPlatformTheme 2013-08-23 08:42:35 +02:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-08-22 02:04:39 +02:00
itemviews QAIV - Fix scollbars with ScrollPerPixel to scroll 1 pixel. 2013-08-26 09:40:59 +02:00
kernel Merge remote-tracking branch 'origin/stable' into dev 2013-08-21 11:03:18 +02:00
styles Test password mask delay and characters on Mac. 2013-07-11 10:56:49 +02:00
util Fix QCompleter::activated(QModelIndex) 2013-08-07 18:21:23 +02:00
widgets Extend QStyle API with a SH_Splitter_OpaqueResize styleHint 2013-08-20 20:09:20 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00