- Timestamp:
- Mar 1, 2022 10:58:16 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r94015 r94026 619 619 QList<QRect> rectanglesList; 620 620 QList<int> shiftsList; 621 foreach (QRect currentItem, boundRegion.rects()) 622 { 621 for (QRegion::const_iterator it = boundRegion.begin(); it != boundRegion.end(); ++it) 622 { 623 QRect currentItem = *it; 623 624 const int iCurrentDelta = qAbs(iWindowVertical - currentItem.center().y()); 624 625 const int iShift2Top = currentItem.top() - rectangle.top(); … … 1056 1057 { 1057 1058 QRegion result; 1058 QVector<QRect> rectangles(region.rects()); 1059 foreach (QRect rectangle, rectangles) 1060 result += QRect(rectangle.y(), rectangle.x(), 1061 rectangle.height(), rectangle.width()); 1059 for (QRegion::const_iterator it = region.begin(); it != region.end(); ++it) 1060 result += QRect(it->y(), it->x(), 1061 it->height(), it->width()); 1062 1062 return result; 1063 1063 }
Note:
See TracChangeset
for help on using the changeset viewer.

