cocoa: Fix Mouse Event tracking of button status
authorRick Stockton <rickstockton@reno-computerhelp.com>
Fri, 21 Dec 2012 04:38:45 +0000 (20:38 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Jan 2013 22:17:58 +0000 (23:17 +0100)
commitf210a8593450049fc366098cab040daea10ca758
tree282dc9ba9bda4080dc90ebc30304d8da291536fa
parent6f1f8934938f0b79a30b034093633aa336da1323
cocoa: Fix Mouse Event tracking of button status

Within qcocoahelpers, make function cocoaButton2QtButton() handle
all button numbers. Within qnsview, call the function in several
places (eliminating duplicate, inefficient code).

Task-number: QTBUG-28567

Change-Id: Ibae2ae4e8a881b825a8862afb82aa80437751111
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Rick Stockton <rickstockton@reno-computerhelp.com>
src/plugins/platforms/cocoa/qcocoahelpers.mm
src/plugins/platforms/cocoa/qnsview.mm