aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/rectangle
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for test filesLucie Gérard2024-02-271-1/+1
| | | | | | | | | | | | | | 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: I26d72e8de04d4c7c57b3b7838af5d033265de5ba Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add a radius property for each corner of a RectangleMatthias Rauter2023-08-191-0/+221
This patch adds 4 properties to the Rectangle: topLeftRadius, topRightRadius, bottomLeftRadius and bottomRightRadius. These properties can be used to get a Rectangle where the corners have different radii. If the properties are not set or if they are zero, the value of the property radius will be used to draw the corner. If radius is zero too, the corner will be drawn normally. The opportunity was used to rename some variables in the QSGRectangleNode and comment the code. We now use float as the storage type for small-valued numbers, to reduce memory usage, even though the setters take qreal values. They lose precision during rendering anyway. [ChangeLog][QtQuick][Rectangle] Rectangle can now render individual radii on each corner. Fixes: QTBUG-48774 Change-Id: Icba1f6a26da513c657b7b218adc9187afb085eda Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>