- Timestamp:
- Feb 6, 2025 3:09:25 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167398
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r108063 r108100 290 290 iProposedWidth += 2 * iMargin; 291 291 if (!model()->tools()->isPopup()) 292 iProposedWidth += 2* iMargin;292 iProposedWidth += 3 * iMargin; 293 293 /* And Tools-item content to take into account: */ 294 294 int iToolsItemWidth = m_pixmapSize.width(); … … 754 754 subRect.setHeight(m_pixmap.height() / m_pixmap.devicePixelRatio() + iPadding * 2); 755 755 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)); 757 757 758 758 /* Paint icon frame: */ … … 850 850 { 851 851 /* Prepare variables: */ 852 const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2 * iMargin;852 const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2.5 * iMargin; 853 853 const int iPixmapY = (iFullHeight - m_pixmap.height() / m_pixmap.devicePixelRatio()) / 2; 854 854 /* Paint pixmap: */ … … 865 865 /* Prepare variables: */ 866 866 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; 868 868 const int iNameY = (iFullHeight - m_nameSize.height()) / 2; 869 869 /* Paint name (always for popup mode, if requested otherwise): */
Note:
See TracChangeset
for help on using the changeset viewer.