Refactor DetailsWidget

This commit is contained in:
frostasm 2017-12-25 15:53:22 +02:00
parent 3ba42ee32e
commit 6007e0de71
9 changed files with 872 additions and 739 deletions

View file

@ -439,11 +439,11 @@ void Group::setParent(Database* db)
QObject::setParent(db);
}
QStringList Group::hierarchy()
QStringList Group::hierarchy() const
{
QStringList hierarchy;
Group* group = this;
Group* parent = m_parent;
const Group* group = this;
const Group* parent = m_parent;
hierarchy.prepend(group->name());
while (parent) {