Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
3
-
007699903 (dev)
-
Foundation Sprint 106, Foundation Sprint 107, Foundation Sprint 108
Description
QRegion used to have a QVector<QRect> rects(), which was removed for Qt 6.0, because since Qt 5.4 or so QRegion itself is iterable, so it's kinda useless. But this gives us the opportunity to use the vacant name rects() to return a QSpan<const QRect> instead. This has two benefits: a) Qt 5 code needs to be changed in fewer places and b) region.rects() is slightly more readable than iterating over the region itself.
Attachments
For Gerrit Dashboard: QTBUG-124712 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
561814,5 | QRegion: re-add rects() and port setRects() to QSpan | dev | qt/qtbase | Status: MERGED | +2 | 0 |