VirtualBox

Changeset 42863 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 17, 2012 12:38:39 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Fix details-view bug in global-event handlers.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp

    r42813 r42863  
    3232UIGDetailsSet::UIGDetailsSet(UIGDetailsItem *pParent)
    3333    : UIGDetailsItem(pParent)
     34    , m_fFullSet(true)
    3435    , m_pStep(0)
    3536    , m_iStep(-1)
     
    6566{
    6667    /* Assign settings: */
     68    m_fFullSet = fFullSet;
    6769    m_machine = pItem->machine();
    6870    m_settings = settings;
    6971
    7072    /* Create elements step-by-step: */
    71     prepareElements(fFullSet);
     73    prepareElements();
    7274}
    7375
     
    126128
    127129    /* Update appearance: */
    128     foreach (UIGDetailsItem *pItem, items())
    129         pItem->toElement()->updateAppearance();
     130    prepareElements();
    130131}
    131132
     
    137138
    138139    /* Update appearance: */
    139     foreach (UIGDetailsItem *pItem, items())
    140         pItem->toElement()->updateAppearance();
     140    prepareElements();
    141141}
    142142
     
    144144{
    145145    /* Update appearance: */
    146     foreach (UIGDetailsItem *pItem, items())
    147         pItem->toElement()->updateAppearance();
     146    prepareElements();
    148147}
    149148
     
    462461}
    463462
    464 void UIGDetailsSet::prepareElements(bool fFullSet)
     463void UIGDetailsSet::prepareElements()
    465464{
    466465    /* Which will be the last step? */
    467     m_iLastStep = fFullSet ? DetailsElementType_Description : DetailsElementType_Preview;
     466    m_iLastStep = m_fFullSet ? DetailsElementType_Description : DetailsElementType_Preview;
    468467    /* Cleanup superfluous elements: */
    469     if (!fFullSet)
     468    if (!m_fFullSet)
    470469        for (int i = DetailsElementType_Display; i <= DetailsElementType_Description; ++i)
    471470            if (m_elements.contains(i))
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.h

    r42813 r42863  
    102102
    103103    /* Helpers: Prepare stuff: */
    104     void prepareElements(bool fFullSet);
     104    void prepareElements();
    105105    void prepareElement(QString strSetId);
    106106    UIGDetailsElement* createElement(DetailsElementType elementType, bool fOpen);
     
    111111
    112112    /* Prepare variables: */
     113    bool m_fFullSet;
    113114    UIPrepareStep *m_pStep;
    114115    int m_iStep;
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