VirtualBox

Changeset 108615 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 19, 2025 4:44:53 PM (5 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168027
Message:

FE/Qt: bugref:10814: VBox Manager / Tool-pane: Small tools-model cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r108614 r108615  
    628628            continue;
    629629
     630        /* Acquire item properties: */
     631        const int iItemHeight = pItem->minimumHeightHint();
     632
    630633        /* Separate procedures for different classes: */
    631634        switch (enmClass)
     
    636639                pItem->setPos(iMargin, iVerticalIndentGlobal);
    637640                /* Set root-item size: */
    638                 pItem->resize(iViewportWidth, pItem->minimumHeightHint());
     641                pItem->resize(iViewportWidth, iItemHeight);
    639642                /* Make sure item is shown: */
    640643                pItem->show();
    641644                /* Advance vertical indent: */
    642                 iVerticalIndentGlobal += (pItem->minimumHeightHint() + iSpacing);
    643                 iVerticalIndentRest += (pItem->minimumHeightHint() + iSpacing);
    644 
    645                 /* If we are in animated state: */
     645                iVerticalIndentGlobal += (iItemHeight + iSpacing);
     646                iVerticalIndentRest += (iItemHeight + iSpacing);
     647
     648                /* Do we have animation engine? */
    646649                if (m_pAnimationEngine)
    647650                {
     
    674677                pItem->setPos(iMargin, iVerticalIndentRest);
    675678                /* Set root-item size: */
    676                 pItem->resize(iViewportWidth, pItem->minimumHeightHint());
     679                pItem->resize(iViewportWidth, iItemHeight);
    677680                /* Make sure item is shown: */
    678681                pItem->show();
    679682                /* Advance vertical indent: */
    680                 iVerticalIndentRest += (pItem->minimumHeightHint() + iSpacing);
     683                iVerticalIndentRest += (iItemHeight + iSpacing);
    681684
    682685                break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette