VirtualBox

Changeset 74840 in vbox for trunk


Ignore:
Timestamp:
Oct 15, 2018 10:00:11 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Chooser pane: Forgot to take children spacing into account for root group item.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp

    r74717 r74840  
    14421442        if (hasItems())
    14431443        {
     1444            /* Prepare variables: */
     1445            const int iChildrenSpacing = data(GroupItemData_ChildrenSpacing).toInt();
     1446
    14441447            /* And every existing child height: */
    14451448            foreach (UIChooserItem *pItem, items())
    1446                 iProposedHeight += pItem->minimumHeightHint();
     1449                iProposedHeight += (pItem->minimumHeightHint() + iChildrenSpacing);
     1450            /* Minus last spacing: */
     1451            iProposedHeight -= iChildrenSpacing;
    14471452        }
    14481453    }
     
    14641469            /* And every existing child height: */
    14651470            foreach (UIChooserItem *pItem, items())
    1466             {
    14671471                iProposedHeight += (pItem->minimumHeightHint() + iChildrenSpacing);
    1468             }
    14691472            /* Minus last spacing: */
    14701473            iProposedHeight -= iChildrenSpacing;
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