X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=892ad5c8fcd0b84109ff7cf8e84036f897c8eb00;hp=a8cd86b79721223058a1f68d72f93ca1699428d7;hb=91e27ef1628b352e1f905b5811cb036442e68242;hpb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index a8cd86b7..892ad5c8 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -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))