Debugger/Utils: Remove TwoLevelTreeModel

It's well covered by the more generic Utils::LeveledTreeModel now.

Change-Id: I3982ad39a64742b0a0a59433024457db3808bfc7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-06-17 12:38:57 +02:00
parent 6bd7c3ef3b
commit 1ce258d710
2 changed files with 5 additions and 24 deletions

View File

@@ -279,24 +279,6 @@ public:
}
};
// A two-level model with a first level of static headers and a uniform second level.
template <class SecondLevelItemType>
class TwoLevelTreeModel : public LeveledTreeModel<StaticTreeItem, SecondLevelItemType>
{
public:
using FirstLevelItem = StaticTreeItem;
using SecondLevelItem = SecondLevelItemType;
using BaseType = LeveledTreeModel<FirstLevelItem, SecondLevelItem>;
explicit TwoLevelTreeModel(QObject *parent = 0) : BaseType(parent) {}
FirstLevelItem *appendFirstLevelItem(const QStringList &display) {
auto item = new FirstLevelItem(display);
this->rootItem()->appendChild(item);
return item;
}
};
// A model where all non-root nodes are the same.
template <class ItemType>
class UniformTreeModel : public LeveledTreeModel<ItemType, ItemType, ItemType>