Changeset 44010 in vbox
- Timestamp:
- Dec 3, 2012 1:55:36 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82422
- 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
r44009 r44010 31 31 { 32 32 /* Prepare connections: */ 33 connect(this, SIGNAL(sigStartFirstStep(QString)), this, SLOT(sltFirstStep(QString)), Qt::QueuedConnection);33 prepareConnections(); 34 34 } 35 35 36 36 UIGDetailsGroup::~UIGDetailsGroup() 37 37 { 38 /* Clea ritems: */38 /* Cleanup items: */ 39 39 clearItems(); 40 40 } … … 52 52 void UIGDetailsGroup::stopPopulatingItems() 53 53 { 54 /* Generate new group-id: */ 54 55 m_strGroupId = QUuid::createUuid().toString(); 55 56 } … … 61 62 m_pStep = 0; 62 63 63 /* Was that a requested group? */64 /* Is step id valid? */ 64 65 if (strGroupId != m_strGroupId) 65 66 return; … … 76 77 m_pStep = 0; 77 78 78 /* Was that a requested group? */79 /* Is step id valid? */ 79 80 if (strGroupId != m_strGroupId) 80 81 return; … … 147 148 default: AssertMsgFailed(("Invalid item type!")); break; 148 149 } 150 } 151 152 void UIGDetailsGroup::prepareConnections() 153 { 154 connect(this, SIGNAL(sigStartFirstStep(QString)), this, SLOT(sltFirstStep(QString)), Qt::QueuedConnection); 149 155 } 150 156 … … 193 199 m_pStep = 0; 194 200 201 /* Generate new group-id: */ 202 m_strGroupId = QUuid::createUuid().toString(); 203 195 204 /* Prepare first set: */ 196 m_strGroupId = QUuid::createUuid().toString();197 205 emit sigStartFirstStep(m_strGroupId); 198 206 } … … 263 271 void UIGDetailsGroup::updateLayout() 264 272 { 265 /* Update size-hints for all the items: */273 /* Update size-hints for all the children: */ 266 274 foreach (UIGDetailsItem *pItem, items()) 267 275 pItem->updateSizeHint(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsGroup.h
r44009 r44010 34 34 signals: 35 35 36 /* Notifier s: Prepare stuff: */36 /* Notifier: Prepare stuff: */ 37 37 void sigStartFirstStep(QString strGroupId); 38 38 … … 79 79 80 80 /* Helpers: Prepare stuff: */ 81 void prepareConnections(); 81 82 void loadSettings(); 82 83 void prepareSets(const QList<UIVMItem*> &items);
Note:
See TracChangeset
for help on using the changeset viewer.