My compiler is not happy with that :( It prefers <code>Qt::ItemFlags flags = Qt::ItemFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);</code>