VirtualBox

Changeset 74597 in vbox for trunk


Ignore:
Timestamp:
Oct 3, 2018 2:28:03 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Make no spacing between global and other chooser items.

File:
1 edited

Legend:

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

    r74393 r74597  
    858858            /* Relayout group: */
    859859            pItem->updateLayout();
    860             /* Update indent for next items: */
    861             iPreviousVerticalIndent += (iMinimumHeight + iChildrenSpacing);
     860            /* Advance indent for next items: */
     861            iPreviousVerticalIndent += iMinimumHeight;
     862            if (pItem->type() != UIChooserItemType_Global)
     863                iPreviousVerticalIndent += iChildrenSpacing;
    862864        }
    863865    }
     
    14611463            /* And every existing child height: */
    14621464            foreach (UIChooserItem *pItem, items())
    1463                 iProposedHeight += (pItem->minimumHeightHint() + iChildrenSpacing);
     1465            {
     1466                iProposedHeight += pItem->minimumHeightHint();
     1467                if (pItem->type() != UIChooserItemType_Global)
     1468                    iProposedHeight += iChildrenSpacing;
     1469            }
    14641470        }
    14651471        /* Minus last spacing: */
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