| 52 | int ThermalNode::childCount() const { return static_cast<int>(childs.size()); } |
| 53 | |
| 54 | int ThermalNode::row() const |
| 55 | { |
| 56 | if (m_parent) |
| 57 | for (size_t i = 0, size = m_parent->childs.size(); i < size; ++i) |
| 58 | if (m_parent->childs[i].get() == this) |
| 59 | return static_cast<int>(i); |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | void ThermalNode::append(ThermalNode* item) |
| 64 | { |