VirtualBox

Changeset 93233 in vbox


Ignore:
Timestamp:
Jan 14, 2022 2:20:53 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: A bit of cleanup for UIWizardAddCloudVM.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp

    r93225 r93233  
    115115                    if (m_pSourceInstanceList)
    116116                    {
    117                         /* Make source image list fit 50 symbols
    118                          * horizontally and 8 lines vertically: */
    119                         const QFontMetrics fm(m_pSourceInstanceList->font());
    120                         const int iFontWidth = fm.width('x');
    121                         const int iTotalWidth = 50 * iFontWidth;
    122                         const int iFontHeight = fm.height();
    123                         const int iTotalHeight = 8 * iFontHeight;
    124                         m_pSourceInstanceList->setMinimumSize(QSize(iTotalWidth, iTotalHeight));
     117                        /* A bit of look&feel: */
    125118                        m_pSourceInstanceList->setAlternatingRowColors(true);
     119                        /* Allow to select more than one item to add: */
    126120                        m_pSourceInstanceList->setSelectionMode(QAbstractItemView::ExtendedSelection);
    127121
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r93115 r93233  
    334334                const int iTotalHeight = 8 * iFontHeight;
    335335                m_pSourceInstanceList->setMinimumSize(QSize(iTotalWidth, iTotalHeight));
     336                /* A bit of look&feel: */
    336337                m_pSourceInstanceList->setAlternatingRowColors(true);
     338                /* Allow to select more than one item to add: */
    337339                m_pSourceInstanceList->setSelectionMode(QAbstractItemView::ExtendedSelection);
    338340
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