Exemplo n.º 1
0
TreeItemType*
UserSelectView::AddUser(UserItem* uItem)
{
        TreeItemType* i = UsersView::AddUser(uItem);
        i->setCheckState(0, Qt::Unchecked);
        i->setToolTip(0, "");
        return i;
}
Exemplo n.º 2
0
TreeItemType*
UserSelectView::AddGroup(const QString& groupName)
{
        TreeItemType* i = UsersView::AddGroup(groupName);
        i->setCheckState(0, Qt::Unchecked);
        i->setToolTip(0, "");
        return i;
}
Exemplo n.º 3
0
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));
                }
        }
}