qtui: Add debug dialog for showing the resource file tree
[quassel.git] / src / client / treemodel.cpp
index a8cd86b..892ad5c 100644 (file)
@@ -347,6 +347,12 @@ TreeModel::~TreeModel()
 }
 
 
+AbstractTreeItem *TreeModel::root() const
+{
+    return rootItem;
+}
+
+
 QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) const
 {
     if (row < 0 || row >= rowCount(parent) || column < 0 || column >= columnCount(parent))