qt5base-lts/doc/src/snippets
Morten Johan Sorvig 5a2efb490b QWheelEvent high-resolution delta support.
Support pixel-based deltas as well as sending
dx and dy values in the same event. Keep source and
behavior compatibility with Qt 4.

New API:
QPoint pixelDelta() const
QPoint angleDelta() const

Deprecate delta() and orientation().

Both pixel-based deltas and combined updates are
necessary for smooth trackpad-based scrolling on
OS X.

Qt 4 compatible behavior is achieved by sending an
extra wheel event in cases where the initial event
has a combined dx and dy update. This extra event
sends dx in delta() and orientation(), with pixelDelta()
and angleDelta() set to null.

Modify the Cocoa implementation to provide pixel
deltas. It is expected that not all platforms can
provide these. Angle deltas will always be available.

Change-Id: I20c10f0df338ddcd6a3f7a4d40949ed5ae3b4795
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
2012-02-24 14:55:06 +01:00
..
brush Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
buffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
code QWheelEvent high-resolution delta support. 2012-02-24 14:55:06 +01:00
customstyle Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
dialogs Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
dockwidgets Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
dragging Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
file Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
fileinfo Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
image Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
layouts Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
matrix Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
network Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
picture Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
pointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
polygon Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
printing-qprinter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
process Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdbusextratypes Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdebug Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdir-listfiles Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qdir-namefilters Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qelapsedtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfontdatabase Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlistwidget-using Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlogging QtDebug: Include file, line, function information 2012-02-01 02:16:32 +01:00
qmacnativewidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmetaobject-invokable Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprocess Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprocess-environment Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsignalmapper Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsortfilterproxymodel-details Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsplashscreen Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstack Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstackedlayout Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstackedwidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstatustipevent Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstring QString: Make convert to number methods only use C locale 2012-02-05 17:49:42 +01:00
qstringlist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstringlistmodel Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstyleoption Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstyleplugin Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtablewidget-resizing Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtablewidget-using Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtcast Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtreewidget-using Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtreewidgetitemiterator-using Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
quiloader Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qx11embedcontainer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qx11embedwidget Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qxmlstreamwriter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
separations Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
settings Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
shareddirmodel Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
sharedemployee Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
signalmapper Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
signalsandslots Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
splitter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
splitterhandle Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
sqldatabase Various documentation fixes ported from 4.8 2012-02-09 12:51:57 +01:00
streaming Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
styles Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
stylesheet Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textblock-fragments Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-css Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-imagedrop Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-listitemstyles Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-lists Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-resources Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-tables Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocument-texttable Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
threads Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
timeline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
timers Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
transform Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
whatsthis Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
widget-mask Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
widgets-tutorial Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
xml Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
complexpingpong-example.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
customviewstyle.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
droparea.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
filedialogurls.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
graphicssceneadditemsnippet.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
javastyle.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
mainwindowsnippet.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
mdiareasnippets.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
myscrollarea.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
ntfsp.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
textdocumentendsnippet.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
widgetdelegate.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
widgetprinting.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00