JPNaude
16th November 2009, 11:50
Hi
This is probably a simple question, but I can't figure out how to do it. I have a bitwise enum. I know that you set one of the bits as follows (example taken out of a table model implementation:
if (is_editable)
item_flags |= Qt::ItemIsEditable;
//else
// item_flags (what to do here) Qt::ItemIsEditable;
I've searched the web but couldn't find any solutions, or I missed them.
I looked at the QWidget::setAttribute() function implementation but it does quite a few things in there and I'm hoping there is a simpler way to do it.
Thanks for your time.
Jaco
This is probably a simple question, but I can't figure out how to do it. I have a bitwise enum. I know that you set one of the bits as follows (example taken out of a table model implementation:
if (is_editable)
item_flags |= Qt::ItemIsEditable;
//else
// item_flags (what to do here) Qt::ItemIsEditable;
I've searched the web but couldn't find any solutions, or I missed them.
I looked at the QWidget::setAttribute() function implementation but it does quite a few things in there and I'm hoping there is a simpler way to do it.
Thanks for your time.
Jaco