/** @return the root Report */ Report* Report::root() { Report* rval = this; while (rval->parent() != nullptr) rval = rval->parent(); return rval; }