VirtualBox

Changeset 99839 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 18, 2023 10:21:44 AM (21 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10450: Runtime UI: Remaining bits fixing Qt6 compatibility for UIMouseHandler, s.a. r154944.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r99479 r99839  
    12981298            /* Choose the largest rectangle: */
    12991299            QRect largestRect;
    1300             foreach (const QRect &rect, viewportRegion.rects())
     1300            for (QRegion::const_iterator it = viewportRegion.begin(); it != viewportRegion.end(); ++it)
     1301            {
     1302                const QRect rect = *it;
    13011303                largestRect = largestRect.width() * largestRect.height() < rect.width() * rect.height() ? rect : largestRect;
     1304            }
    13021305            /* Assign the partial-viewport-region to the largest rect: */
    13031306            viewportRegion = largestRect;
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