Changeset 42863 in vbox for trunk/src/VBox
- Timestamp:
- Aug 17, 2012 12:38:39 PM (12 years ago)
- 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 32 32 UIGDetailsSet::UIGDetailsSet(UIGDetailsItem *pParent) 33 33 : UIGDetailsItem(pParent) 34 , m_fFullSet(true) 34 35 , m_pStep(0) 35 36 , m_iStep(-1) … … 65 66 { 66 67 /* Assign settings: */ 68 m_fFullSet = fFullSet; 67 69 m_machine = pItem->machine(); 68 70 m_settings = settings; 69 71 70 72 /* Create elements step-by-step: */ 71 prepareElements( fFullSet);73 prepareElements(); 72 74 } 73 75 … … 126 128 127 129 /* Update appearance: */ 128 foreach (UIGDetailsItem *pItem, items()) 129 pItem->toElement()->updateAppearance(); 130 prepareElements(); 130 131 } 131 132 … … 137 138 138 139 /* Update appearance: */ 139 foreach (UIGDetailsItem *pItem, items()) 140 pItem->toElement()->updateAppearance(); 140 prepareElements(); 141 141 } 142 142 … … 144 144 { 145 145 /* Update appearance: */ 146 foreach (UIGDetailsItem *pItem, items()) 147 pItem->toElement()->updateAppearance(); 146 prepareElements(); 148 147 } 149 148 … … 462 461 } 463 462 464 void UIGDetailsSet::prepareElements( bool fFullSet)463 void UIGDetailsSet::prepareElements() 465 464 { 466 465 /* Which will be the last step? */ 467 m_iLastStep = fFullSet ? DetailsElementType_Description : DetailsElementType_Preview;466 m_iLastStep = m_fFullSet ? DetailsElementType_Description : DetailsElementType_Preview; 468 467 /* Cleanup superfluous elements: */ 469 if (! fFullSet)468 if (!m_fFullSet) 470 469 for (int i = DetailsElementType_Display; i <= DetailsElementType_Description; ++i) 471 470 if (m_elements.contains(i)) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.h
r42813 r42863 102 102 103 103 /* Helpers: Prepare stuff: */ 104 void prepareElements( bool fFullSet);104 void prepareElements(); 105 105 void prepareElement(QString strSetId); 106 106 UIGDetailsElement* createElement(DetailsElementType elementType, bool fOpen); … … 111 111 112 112 /* Prepare variables: */ 113 bool m_fFullSet; 113 114 UIPrepareStep *m_pStep; 114 115 int m_iStep;
Note:
See TracChangeset
for help on using the changeset viewer.