forked from qt-creator/qt-creator
Debugger: Remove most remaining occurrences of WatchData
... in WatchHandler and DebuggerEngine interface. Adjust using code. Change-Id: I6371f3e96ba46a783e23a5767cdde24a10d3fce7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -725,6 +725,17 @@ void TreeItem::removeChildren()
|
||||
}
|
||||
}
|
||||
|
||||
void TreeItem::sortChildren(const std::function<bool(const TreeItem *, const TreeItem *)> &cmp)
|
||||
{
|
||||
if (m_model) {
|
||||
m_model->layoutAboutToBeChanged();
|
||||
std::sort(m_children.begin(), m_children.end(), cmp);
|
||||
m_model->layoutChanged();
|
||||
} else {
|
||||
std::sort(m_children.begin(), m_children.end(), cmp);
|
||||
}
|
||||
}
|
||||
|
||||
void TreeItem::update()
|
||||
{
|
||||
if (m_model) {
|
||||
|
||||
Reference in New Issue
Block a user