VirtualBox

Changeset 76915 in vbox


Ignore:
Timestamp:
Jan 21, 2019 12:24:14 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128286
Message:

FE/Qt: bugref:9241: VirtualBox Manager UI: Chooser pane: Layout fix for group enter/exit animation.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
2 edited

Legend:

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

    r76606 r76915  
    7979    , m_fIsScrollingInProgress(false)
    8080    , m_pLookupTimer(0)
     81    , m_iGlobalItemHeightHint(-1)
    8182{
    8283    /* Prepare: */
     
    471472    m_pLeftRoot->setPos(0, 0);
    472473    m_pLeftRoot->resize(root()->geometry().size());
     474    if (fLeftRootIsMain)
     475    {
     476        foreach (UIChooserItem *pItem, m_pLeftRoot->items(UIChooserItemType_Global))
     477            pItem->toGlobalItem()->setHeightHint(m_iGlobalItemHeightHint);
     478    }
    473479
    474480    /* Create right root: */
     
    506512    m_pLeftRoot->setPos(- root()->geometry().width(), 0);
    507513    m_pLeftRoot->resize(root()->geometry().size());
     514    if (fLeftRootIsMain)
     515    {
     516        foreach (UIChooserItem *pItem, m_pLeftRoot->items(UIChooserItemType_Global))
     517            pItem->toGlobalItem()->setHeightHint(m_iGlobalItemHeightHint);
     518    }
    508519
    509520    /* Create right root: */
     
    672683void UIChooserModel::setGlobalItemHeightHint(int iHint)
    673684{
     685    /* Remember new hint: */
     686    m_iGlobalItemHeightHint = iHint;
     687
    674688    /* Walk thrugh all the items of navigation list: */
    675689    foreach (UIChooserItem *pItem, navigationList())
     
    681695            UIChooserItemGlobal *pGlobalItem = pItem->toGlobalItem();
    682696            if (pGlobalItem)
    683                 pGlobalItem->setHeightHint(iHint);
     697                pGlobalItem->setHeightHint(m_iGlobalItemHeightHint);
    684698        }
    685699    }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r76581 r76915  
    523523        /** Holds the Id of last VM created from the GUI side. */
    524524        QUuid  m_uLastCreatedMachineId;
     525
     526        /** Holds the global item height hint. */
     527        int  m_iGlobalItemHeightHint;
    525528    /** @} */
    526529
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