VirtualBox

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


Ignore:
Timestamp:
Feb 9, 2025 7:34:17 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167426
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Tool item macOS layout fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp

    r108126 r108127  
    288288    iProposedWidth += 2 * iMargin;
    289289#ifdef VBOX_WS_MAC
    290     /* Additional 3 margins for widget mode: */
     290    /* Additional 2 margins for widget mode: */
    291291    if (!model()->tools()->isPopup())
    292         iProposedWidth += 3 * iMargin;
     292        iProposedWidth += 2 * iMargin;
    293293#else
    294294    /* Additional 1 margin for widget mode: */
     
    775775            subRect.setWidth(subRect.height());
    776776#ifdef VBOX_WS_MAC
    777             subRect.moveTopLeft(rectangle.topLeft() + QPoint(2.5 * iMargin - iPadding, iMargin - iPadding));
     777            subRect.moveTopLeft(rectangle.topLeft() + QPoint(2 * iMargin - iPadding, iMargin - iPadding));
    778778#else
    779779            subRect.moveTopLeft(rectangle.topLeft() + QPoint(1.5 * iMargin - iPadding, iMargin - iPadding));
     
    887887        /* Prepare variables: */
    888888#ifdef VBOX_WS_MAC
    889         const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2.5 * iMargin;
     889        const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2 * iMargin;
    890890#else
    891891        const int iPixmapX = model()->tools()->isPopup() ? iMargin : 1.5 * iMargin;
     
    906906#ifdef VBOX_WS_MAC
    907907        const int iNameX = model()->tools()->isPopup() ? iMargin + m_pixmapSize.width() + iSpacing
    908                                                        : 2.5 * iMargin + m_pixmapSize.width() + 2 * iSpacing;
     908                                                       : 2 * iMargin + m_pixmapSize.width() + 2 * iSpacing;
    909909#else
    910910        const int iNameX = model()->tools()->isPopup() ? iMargin + m_pixmapSize.width() + iSpacing
Note: See TracChangeset for help on using the changeset viewer.

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