diff -ruN libqtlua-2.1/src/qtluatabletreemodel.cc libqtlua-2.1-new/src/qtluatabletreemodel.cc --- libqtlua-2.1/src/qtluatabletreemodel.cc 2013-03-18 00:14:27.000000000 +0100 +++ libqtlua-2.1-new/src/qtluatabletreemodel.cc 2019-11-25 21:02:09.424920320 +0100 @@ -223,7 +223,7 @@ TableTreeKeys *t = static_cast(index.internalPointer()); - Qt::ItemFlags res = (Qt::ItemFlag)(Qt::ItemIsEnabled | Qt::ItemIsSelectable); + QFlags res = Qt::ItemIsEnabled | Qt::ItemIsSelectable; if (t->_attr & Editable) {