| 81 | } |
| 82 | |
| 83 | bool TreeItem::removeChildren(int position, int count) { |
| 84 | if (position < 0 || position + count > childItems.size()) |
| 85 | return false; |
| 86 | |
| 87 | for (int row = 0; row < count; ++row) |
| 88 | delete childItems.takeAt(position); |
| 89 | |
| 90 | return true; |
| 91 | } |
| 92 | |
| 93 | bool TreeItem::removeColumns(int position, int columns) { |
| 94 | if (position < 0 || position + columns > itemData.size()) |