Changeset 33540 in vbox for trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
r32787 r33540 209 209 * It is vitally important that updateCallback is fed the data in the right 210 210 * order. The code make very definite ASSUMPTIONS about the ordering being 211 * stric ly sorted and taking the slash into account when doing so.211 * strictly sorted and taking the slash into account when doing so. 212 212 * 213 213 * @returns true if we reset the model and it's necessary to set the root index. … … 406 406 407 407 /** 408 * Removes a node from the tree and destroys it and all its de centands.408 * Removes a node from the tree and destroys it and all its descendants. 409 409 * 410 410 * @param pNode The node. … … 412 412 static void removeAndDestroyNode(PDBGGUISTATSNODE pNode); 413 413 414 /** Removes a node from the tree and destroys it and all its de centands414 /** Removes a node from the tree and destroys it and all its descendants 415 415 * performing the required Qt signalling. */ 416 416 void removeAndDestroy(PDBGGUISTATSNODE pNode); … … 429 429 * 430 430 * @param a_pNode The node. 431 * @param a_rString The string to append the stri gified node to.431 * @param a_rString The string to append the stringified node to. 432 432 */ 433 433 static void stringifyNodeNoRecursion(PDBGGUISTATSNODE a_pNode, QString &a_rString); … … 439 439 * 440 440 * @param a_pNode The node. 441 * @param a_rString The string to append the stri gified node to.441 * @param a_rString The string to append the stringified node to. 442 442 */ 443 443 static void stringifyNode(PDBGGUISTATSNODE a_pNode, QString &a_rString); … … 520 520 public: 521 521 522 /** @name Overrid en QAbstractItemModel methods522 /** @name Overridden QAbstractItemModel methods 523 523 * @{ */ 524 524 virtual int columnCount(const QModelIndex &a_rParent) const; … … 1309 1309 return NULL; 1310 1310 1311 /* de cend to children. */1311 /* descend to children. */ 1312 1312 if (pNode->cChildren) 1313 1313 return pNode->papChildren[0]; … … 1354 1354 return NULL; 1355 1355 1356 /* previous sibling's latest de cendant (better expression anyone?). */1356 /* previous sibling's latest descendant (better expression anyone?). */ 1357 1357 if (pNode->iSelf > 0) 1358 1358 { … … 1418 1418 * 1419 1419 * Might consider optimizing insertion at some later point since this 1420 * is a normal occur ance (dynamic statistics in PATM, IOM, MM, ++).1420 * is a normal occurrence (dynamic statistics in PATM, IOM, MM, ++). 1421 1421 */ 1422 1422 Assert(pszName[0] == '/'); … … 1608 1608 if (pNode->cChildren) 1609 1609 { 1610 /* de cend to the first child. */1610 /* descend to the first child. */ 1611 1611 Assert(m_cchUpdateParent + pNode->cchName + 2 < sizeof(m_szUpdateParent)); 1612 1612 memcpy(&m_szUpdateParent[m_cchUpdateParent], pNode->pszName, pNode->cchName); … … 1653 1653 } 1654 1654 1655 /* de cend to a node containing data and finalize the globals. (ASSUMES leaf has data.) */1655 /* descend to a node containing data and finalize the globals. (ASSUMES leaf has data.) */ 1656 1656 if (m_iUpdateChild != UINT32_MAX) 1657 1657 { … … 1807 1807 * Send dataChanged events. 1808 1808 * 1809 * We do this here instead of from the updateCallback because it lesses1809 * We do this here instead of from the updateCallback because it reduces 1810 1810 * the clutter in that method and allow us to emit bulk signals in an 1811 1811 * easier way because we can traverse the tree in a different fashion.
Note:
See TracChangeset
for help on using the changeset viewer.