Changeset 44011 in vbox
- Timestamp:
- Dec 3, 2012 2:04:52 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/UIGDetailsGroup.cpp
r44010 r44011 40 40 } 41 41 42 void UIGDetailsGroup::setItems(const QList<UIVMItem*> &items) 43 { 44 prepareSets(items); 42 void UIGDetailsGroup::setItems(const QList<UIVMItem*> &machineItems) 43 { 44 /* Remember new items: */ 45 m_machineItems = machineItems; 46 47 /* Cleanup superflous sets: */ 48 while (m_items.size() > m_machineItems.size()) 49 delete m_items.last(); 50 51 /* Update items: */ 52 updateItems(); 45 53 } 46 54 47 55 void UIGDetailsGroup::updateItems() 48 56 { 49 updateSets(); 57 /* Load settings: */ 58 loadSettings(); 59 60 /* Clear step: */ 61 delete m_pStep; 62 m_pStep = 0; 63 64 /* Generate new group-id: */ 65 m_strGroupId = QUuid::createUuid().toString(); 66 67 /* Prepare first set: */ 68 emit sigStartFirstStep(m_strGroupId); 50 69 } 51 70 … … 177 196 } 178 197 179 void UIGDetailsGroup::prepareSets(const QList<UIVMItem*> &machineItems)180 {181 /* Remember new items: */182 m_machineItems = machineItems;183 184 /* Cleanup superflous sets: */185 while (m_items.size() > m_machineItems.size())186 delete m_items.last();187 188 /* Update sets: */189 updateSets();190 }191 192 void UIGDetailsGroup::updateSets()193 {194 /* Load settings: */195 loadSettings();196 197 /* Clear step: */198 delete m_pStep;199 m_pStep = 0;200 201 /* Generate new group-id: */202 m_strGroupId = QUuid::createUuid().toString();203 204 /* Prepare first set: */205 emit sigStartFirstStep(m_strGroupId);206 }207 208 198 void UIGDetailsGroup::prepareSet(QString strGroupId) 209 199 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsGroup.h
r44010 r44011 48 48 49 49 /* API: Prepare stuff: */ 50 void setItems(const QList<UIVMItem*> & items);50 void setItems(const QList<UIVMItem*> &machineItems); 51 51 void updateItems(); 52 52 void stopPopulatingItems(); … … 81 81 void prepareConnections(); 82 82 void loadSettings(); 83 void prepareSets(const QList<UIVMItem*> &items);84 void updateSets();85 83 void prepareSet(QString strGroupId); 86 84
Note:
See TracChangeset
for help on using the changeset viewer.