VirtualBox

Changeset 94026 in vbox for trunk


Ignore:
Timestamp:
Mar 1, 2022 10:58:16 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: QRegion::rects() was removed in 6, so must use iterators introduced in 5.8 (not ifdef'ed). bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp

    r94015 r94026  
    619619    QList<QRect> rectanglesList;
    620620    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;
    623624        const int iCurrentDelta = qAbs(iWindowVertical - currentItem.center().y());
    624625        const int iShift2Top = currentItem.top() - rectangle.top();
     
    10561057{
    10571058    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());
    10621062    return result;
    10631063}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette