Changeset 108124 in vbox
- Timestamp:
- Feb 9, 2025 5:53:03 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r108123 r108124 289 289 /* Add 2 margins by default: */ 290 290 iProposedWidth += 2 * iMargin; 291 #ifdef VBOX_WS_MAC 291 292 /* Additional 3 margins for widget mode: */ 292 293 if (!model()->tools()->isPopup()) 293 294 iProposedWidth += 3 * iMargin; 295 #else 296 /* Additional 1 margin for widget mode: */ 297 if (!model()->tools()->isPopup()) 298 iProposedWidth += iMargin; 299 #endif 294 300 295 301 /* Add pixmap size by default: */ … … 775 781 subRect.setHeight(m_pixmap.height() / m_pixmap.devicePixelRatio() + iPadding * 2); 776 782 subRect.setWidth(subRect.height()); 783 #ifdef VBOX_WS_MAC 777 784 subRect.moveTopLeft(rectangle.topLeft() + QPoint(2.5 * iMargin - iPadding, iMargin - iPadding)); 785 #else 786 subRect.moveTopLeft(rectangle.topLeft() + QPoint(1.5 * iMargin - iPadding, iMargin - iPadding)); 787 #endif 778 788 779 789 /* Paint icon frame: */ … … 883 893 { 884 894 /* Prepare variables: */ 895 #ifdef VBOX_WS_MAC 885 896 const int iPixmapX = model()->tools()->isPopup() ? iMargin : 2.5 * iMargin; 897 #else 898 const int iPixmapX = model()->tools()->isPopup() ? iMargin : 1.5 * iMargin; 899 #endif 886 900 const int iPixmapY = (iFullHeight - m_pixmap.height() / m_pixmap.devicePixelRatio()) / 2; 887 901 /* Paint pixmap: */ … … 897 911 { 898 912 /* Prepare variables: */ 913 #ifdef VBOX_WS_MAC 899 914 const int iNameX = model()->tools()->isPopup() ? iMargin + m_pixmapSize.width() + iSpacing 900 915 : 2.5 * iMargin + m_pixmapSize.width() + 2 * iSpacing; 916 #else 917 const int iNameX = model()->tools()->isPopup() ? iMargin + m_pixmapSize.width() + iSpacing 918 : 1.5 * iMargin + m_pixmapSize.width() + 2 * iSpacing; 919 #endif 901 920 const int iNameY = (iFullHeight - m_nameSize.height()) / 2; 902 921 /* Paint name (always for popup mode, if requested otherwise): */
Note:
See TracChangeset
for help on using the changeset viewer.