summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicstransform
Commit message (Collapse)AuthorAgeFilesLines
* Incorporate API review feedback for math3d classes.Rhys Weatherley2009-11-041-3/+3
| | | | Reviewed-by: Sarah Smith
* Optimize QGraphicsRotation's use of QMatrix4x4Rhys Weatherley2009-10-261-1/+68
| | | | | | | | Previous code was creating a full 3D rotation matrix and then projecting back to 2D. This change combines the two steps into one to avoid calculating matrix components that will be dropped. Reviewed-by: Sarah Smith
* Fix a bug in QGraphicsRotation related to 2D projectionsRhys Weatherley2009-10-221-1/+1
| | | | | | | The projection to 2D needs to be done when the rotation is applied, not after all transformations have been applied. Reviewed-by: trustme
* Comparison tolerance increased for handheldsninerider2009-10-081-1/+5
| | | | | | | The 'fuzzy' value for the was not relaxed enoough for small devices such as Windows Mobile and the like. Reviewed-by: Joerg
* Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | Reviewed-by: Trust Me
* Update tech preview license header for files that are new in 4.6.Jason McDonald2009-08-311-13/+13
| | | | Reviewed-by: Trust Me
* Remove QGraphicsTransform::project()Rhys Weatherley2009-08-191-2/+2
| | | | | | QMatrix4x4::toTransform() now does what project() used to do. Reviewed-by: trustme
* Re-implement QGraphicsTransform to use QMatrix4x4Rhys Weatherley2009-08-191-32/+109
| | | | | | | | | | QTransform-based transformations create problems when performing X and Y axis rotations because they aren't using true 3D. This change modifies QGraphicsTransform and its sub-classes to use QMatrix4x4 as the standard transformation matrix, with a project() function to project back to 2D when required. Reviewed-by: trustme
* QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-121-20/+39
| | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
* Update contact URL in license headers.Jason McDonald2009-08-121-1/+1
| | | | Reviewed-by: Trust Me
* Set default QGraphicsTransform3D axis to (0, 0, 1)Rhys Weatherley2009-08-101-1/+21
| | | | | | | | | The docs said that the default axis was (0, 0, 1), but the code and unit tests were using (0, 0, 0). Modify the code to match the docs because (0, 0, 0) is not very useful. Also optimize the calculation of sin/cos values for 90, 180, and 270 degrees. Reviewed-by: Aaron Kennedy
* Implement new transformation handling for graphics items.Lars Knoll2009-07-292-0/+164
The idea of having separate rotationX/Y/Z, shearX/Y, etc. methods in QGraphicsItem turned out to be not giving us the flexibility we need and wanted. The new code now implements a different scheme, where we keep simple rotate (around z-axis), scale and transformOriginPoint methods, but remove the other ones. Instead we now have an additional list of QGraphicsTransform object. QGraphicsTransform is an abstract class that inherits QObject. Several specializations are provided and can be used to transform (and through property bindings animate) the item. Reviewed-By: Andreas