It appears that the check box in a tree (or list) view doesn't change when checked (4.3.2) -- which if fixed in 4.3.3 means I can remove some code I added to "fix" it.
I added a:
connect(m_list, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(clickCheck(QListWidgetItem*)));
To copy to clipboard, switch view to plain text mode
and for the slot:
{
if (item->checkState() == Qt::Unchecked)
item->setCheckState(Qt::Checked);
else
item->setCheckState(Qt::Unchecked);
}
void clickCheck(QListWidgetItem* item)
{
if (item->checkState() == Qt::Unchecked)
item->setCheckState(Qt::Checked);
else
item->setCheckState(Qt::Unchecked);
}
To copy to clipboard, switch view to plain text mode
This allows the user to click on the label for the check box & get the box toggled. (Boy, I hope 4.3.3 allows me to remove this code... although it makes it nicer for users, maybe I'll keep it either way)
Vycke
Bookmarks