Add GroupModel and corresponding unit test.

This commit is contained in:
Felix Geyer 2010-08-15 12:31:48 +02:00
parent 9b0ba46b31
commit 072a8ccf1b
12 changed files with 922 additions and 8 deletions

View file

@ -35,7 +35,7 @@ Group* Database::rootGroup()
void Database::setRootGroup(Group* group)
{
Q_ASSERT(group == 0 || group->parent() == this);
Q_ASSERT(group == 0 || group->database() == this);
m_rootGroup = group;
}