VirtualBox

Ignore:
Timestamp:
Jul 5, 2021 3:50:50 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145528
Message:

FE/Qt: bugref:9996: macOS: A bit of layout adjustment for New Cloud VM wizard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r89997 r90034  
    134134                {
    135135                    m_pSourceImageList->setSortingEnabled(true);
    136                     /* Make source image list fit 50 symbols
     136                    /* Make source image list fit 40/50 symbols
    137137                     * horizontally and 8 lines vertically: */
    138138                    const QFontMetrics fm(m_pSourceImageList->font());
    139139                    const int iFontWidth = fm.width('x');
     140#ifdef VBOX_WS_MAC
     141                    const int iTotalWidth = 40 * iFontWidth;
     142#else
    140143                    const int iTotalWidth = 50 * iFontWidth;
     144#endif
    141145                    const int iFontHeight = fm.height();
    142146                    const int iTotalHeight = 8 * iFontHeight;
     
    165169                if (m_pFormEditor)
    166170                {
    167                     /* Make form editor fit fit 50 symbols
     171                    /* Make form editor fit fit 40/50 symbols
    168172                     * horizontally and 8 sections vertically: */
    169173                    const QFontMetrics fm(m_pSourceImageList->font());
    170174                    const int iFontWidth = fm.width('x');
     175#ifdef VBOX_WS_MAC
     176                    const int iTotalWidth = 40 * iFontWidth;
     177#else
    171178                    const int iTotalWidth = 50 * iFontWidth;
     179#endif
    172180                    const int iSectionHeight = m_pFormEditor->verticalHeader()
    173181                                             ? m_pFormEditor->verticalHeader()->defaultSectionSize()
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