qtbase/examples/corelib
Thiago Macieira 02f5cc7ed2 Examples: don't overflow a QRect with adjusted()
Required after 1145e1709d made QRect use
QCheckedInt. We can avoid this by simply using QRectF one step earlier
in the calculation, which a) expands the range from ±2^31 to ±2^53 and
b) neatly avoids infinite zooming by not doing anything after 2^53
(because 2^53 + 1 = 2^53).

Fixes: QTBUG-138504
Pick-to: 6.10
Change-Id: Ibe382ad9b98bbfb9fde6fffd94bd733a4b999852
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2025-08-27 18:46:19 +00:00
..
bindableproperties CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
ipc Fix feature dependencies for sharedmemory 2024-04-17 10:06:44 +00:00
mimetypes Mime type browser example: Add translator loader code 2025-01-06 18:56:19 +01:00
platform Compile androidnotifier only if widgets are available 2025-05-02 16:51:15 +03:00
serialization Examples: fix a couple of nodiscard warnings from QFile::open 2025-04-24 10:44:03 +01:00
threads Examples: don't overflow a QRect with adjusted() 2025-08-27 18:46:19 +00:00
time Compile calendarbackendplugin only if widgets are enabled 2025-04-29 17:00:12 +03:00
tools CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
CMakeLists.txt QCalendar example illustrating the user-supplied plugin mechanism 2024-07-04 15:25:29 +02:00
corelib.pro QCalendar example illustrating the user-supplied plugin mechanism 2024-07-04 15:25:29 +02:00