TreeItemType*
UserSelectView::AddUser(UserItem* uItem)
{
        TreeItemType* i = UsersView::AddUser(uItem);
        i->setCheckState(0, Qt::Unchecked);
        i->setToolTip(0, "");
        return i;
}
TreeItemType*
UserSelectView::AddGroup(const QString& groupName)
{
        TreeItemType* i = UsersView::AddGroup(groupName);
        i->setCheckState(0, Qt::Unchecked);
        i->setToolTip(0, "");
        return i;
}
void
UserSelectView::SetAllChecked(bool checked)
{
        int topCount = this->topLevelItemCount();
        for (int i = 0; i < topCount; i++)
        {
                TreeItemType* topi = this->topLevelItem(i);
                int csCount = topi->childCount();
                for (int j = 0; j < csCount; j++)
                {
                        TreeItemType* chld = topi->child(j);
                        chld->setCheckState(0, checked?(Qt::Checked):(Qt::Unchecked));
                }
        }
}