summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-11-26 14:27:37 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-28 08:43:31 +0100
commit5a9de4c6768e413a56f0e7b6c67ea11db761cd58 (patch)
treee3ec0253adfdad29378b273e038136994e1ef0b3 /examples/widgets/tutorials
parent5dcc36b15c479f532ffd0b5c1330e683fcf8781e (diff)
Always use QAIM to get the default flags.
Change-Id: I801f5c8023e3e3672fde28139a7f34f640e650f5 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'examples/widgets/tutorials')
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/mymodel.cpp4
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]