Commit Graph

9 Commits

Author SHA1 Message Date
Lucie Gérard 28bba0ad93 Correct license for test files
According to QUIP-18 [1], all test files should be
LicenseRef-Qt-Commercial OR GPL-3.0-only

[1]: https://contribute.qt-project.org/quips/18

Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I966d4033a73aacabb39f582270f2f1c18e2bcecd
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-04-23 06:28:57 +00:00
Lucie Gérard 2f1bc82b35 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: I8105424281eed871037fa6c463871ca8829876b5
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-22 10:47:10 +02:00
Paul Lemire 294bf32c29 Fix picking-qml manual test
Change-Id: I06bbd8e9a521e5572182275198c1a1bb91e1626d
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2021-08-02 06:35:50 +02:00
Mike Krus 174cd487b4 Make sample meshes geometry renderers again
Introduce new geometry view class for each.

Change-Id: I8e9a8f3a078d4cc63f9656ae8142e39f05d755c7
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2020-07-30 13:51:37 +01:00
Mike Krus 6eedeff84f Introduce QPickingProxy
Lets user provide a separate mesh for picking.

Change-Id: I30a61920e1673d8bc3473ca85046b236bad0a2af
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2020-04-23 21:24:15 +01:00
Mike Krus 5bf4f93fcb Make default geometries views
In Extras, make QTorusMesh and others a QGeometryView rather than
a QGeometryRenderer. Requires changes to scene graphs here and there
but going forward there simple shapes could be used as proxies for
picking or collision detection, etc.

Change-Id: Id488e064080dfd303e448aba11e6b242236b81d4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2020-02-27 12:10:08 +00:00
Paul Lemire b7b7758630 Picking: viewport contains check needs to use pos in GL coordinate
The viewport rect is computed in GL coordinates. Therefore we need
to check if the mouse is contained with the position in GL coordinates.
The error is not noticeable unless you are using non full height viewport.

Change-Id: I1c39ff91da4a3649288826b939071a298c83c723
Task-number: QTBUG-72856
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2019-01-07 08:22:51 +00:00
Mike Krus f0945707df Add modifier and button support to QPickEvent
Task-number: QTBUG-54006
Change-Id: Iffc04bc92648901e9cfdb98cc0818b5cbef46f81
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2016-08-13 08:05:49 +00:00
Robert Brock 5dfc7b06b0 Moved picking-qml example to manual test
Part of an examples cleanup

Change-Id: Iaf8783fc456990a36d664540da9aa07ea05f6eb2
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2016-05-15 13:45:04 +00:00