summaryrefslogtreecommitdiff
path: root/examples/qml/cppextensions/referenceexamples
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2012-02-23 11:57:18 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-23 04:06:04 +0100
commit09ea9cace4286c639044aef79f2deb107c2a5376 (patch)
tree272ff2fdb4fb3f34ac377bb9a5595222915a9d37 /examples/qml/cppextensions/referenceexamples
parent924a9620d528da85dc19df7573d33ba4132e5a3a (diff)
downloadqtdeclarative-09ea9cace4286c639044aef79f2deb107c2a5376.tar.gz
Fix for bad operator precedence causing right mouse button issues
Binary or (|) has higher operator precedence than a ternary in C, causing the original expression here to function quite incorrectly for anything other than the common left-mouse-button-only case. I just added brackets -- feel free to change this to "if"s if you think that would more clearly avoid this issue in future. Change-Id: Ie20bd7e805b89a393794d3240fb0ae680b29ff64 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'examples/qml/cppextensions/referenceexamples')
0 files changed, 0 insertions, 0 deletions