VirtualBox

Changeset 108100 in vbox for trunk


Ignore:
Timestamp:
Feb 6, 2025 3:09:25 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167398
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Increasing tool item margins for widget mode.

File:
1 edited

Legend:

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

    r108063 r108100  
    290290    iProposedWidth += 2 * iMargin;
    291291    if (!model()->tools()->isPopup())
    292         iProposedWidth += 2 * iMargin;
     292        iProposedWidth += 3 * iMargin;
    293293    /* And Tools-item content to take into account: */
    294294    int iToolsItemWidth = m_pixmapSize.width();
     
    754754            subRect.setHeight(m_pixmap.height() / m_pixmap.devicePixelRatio() + iPadding * 2);
    755755            subRect.setWidth(subRect.height());
    756             subRect.moveTopLeft(rectangle.topLeft() + QPoint(2 * iMargin - iPadding, iMargin - iPadding));
     756            subRect.moveTopLeft(rectangle.topLeft() + QPoint(2.5 * iMargin - iPadding, iMargin - iPadding));
    757757
    758758            /* Paint icon frame: */
     
    850850    {
    851851        /* Prepare variables: */
    852         const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2 * iMargin;
     852        const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2.5 * iMargin;
    853853        const int iPixmapY = (iFullHeight - m_pixmap.height() / m_pixmap.devicePixelRatio()) / 2;
    854854        /* Paint pixmap: */
     
    865865        /* Prepare variables: */
    866866        const int iNameX = model()->tools()->isPopup() ? iMargin + m_pixmapSize.width() + iSpacing
    867                                                        : 2 * iMargin + m_pixmapSize.width() + iSpacing;
     867                                                       : 2.5 * iMargin + m_pixmapSize.width() + iSpacing;
    868868        const int iNameY = (iFullHeight - m_nameSize.height()) / 2;
    869869        /* Paint name (always for popup mode, if requested otherwise): */
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