VirtualBox

Changeset 94003 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 1, 2022 12:36:09 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: QLayout::margin (removed in 6) -> QLayout::getContentsMargins (4.3+). bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFlowLayout.cpp

    r93115 r94003  
    8989
    9090    /* Do not forget the margins: */
    91     size += QSize(2 * margin(), 2 * margin());
     91    int iLeft, iTop, iRight, iBottom;
     92    getContentsMargins(&iLeft, &iTop, &iRight, &iBottom);
     93    size += QSize(iLeft + iRight, iTop + iBottom);
    9294
    9395    /* Return resulting size: */
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