diff options
Diffstat (limited to 'examples/widgets/tutorials/modelview/5_edit')
-rw-r--r-- | examples/widgets/tutorials/modelview/5_edit/mymodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp b/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp index f64e0d563a..7792c1cc2b 100644 --- a/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp +++ b/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp @@ -94,8 +94,8 @@ bool MyModel::setData(const QModelIndex & index, const QVariant & value, int rol //----------------------------------------------------------------- //! [quoting mymodel_f] -Qt::ItemFlags MyModel::flags(const QModelIndex & /*index*/) const +Qt::ItemFlags MyModel::flags(const QModelIndex &index) const { - return Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled ; + return Qt::ItemIsEditable | QAbstractTableModel::flags(index); } //! [quoting mymodel_f] |