qt5base-lts/examples/widgets/painting/gradients
Shawn Rutledge 76537c065a Avoid divide-by-zero in the gradients example
After 7a738daa97 we require
QLineF::setLength() to take a finite length, and this code was probably
always risky when HoverPoints has two points that are both 0,0.
It's probably a transient condition anyway.

Fixes: QTBUG-92908
Change-Id: If81122d2f78761026b0d656ceffe173132751317
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2021-04-19 19:56:25 +02:00
..
.prev_CMakeLists.txt CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-27 12:49:39 +01:00
CMakeLists.txt CMake: Fix painting examples to build as standalone projects 2020-10-27 19:26:45 +01:00
gradients.cpp Avoid divide-by-zero in the gradients example 2021-04-19 19:56:25 +02:00
gradients.h Cleanup QtWidgets examples 2019-10-11 06:32:30 +02:00
gradients.html Add demo of the new QGradient presets to the gradients example 2018-07-24 16:45:41 +00:00
gradients.pro Move arthurwidget based examples to new QOpenGL classes 2018-10-17 09:16:01 +00:00
gradients.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
main.cpp Examples: enable HighDPI scaling for examples on Android 2020-03-03 19:35:11 +02:00