diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-07-28 20:06:24 +1000 |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-07-28 20:06:24 +1000 |
commit | caaa72870f9b85d816305c2cd405686eac8a050d (patch) | |
tree | a650347672f161d396ec8b018e8702c564465700 /examples/listModel/model.cpp | |
parent | 68b2811e8ef13e423771167433b63e8fbd56ea8e (diff) |
Update the examples to the new QGraphicsListView changes.
Diffstat (limited to 'examples/listModel/model.cpp')
-rw-r--r-- | examples/listModel/model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/listModel/model.cpp b/examples/listModel/model.cpp index 3be8314..d18da24 100644 --- a/examples/listModel/model.cpp +++ b/examples/listModel/model.cpp @@ -44,7 +44,7 @@ QHash<int,QVariant> Model::data(int index, const QList<int> &roles) const if (index >= 0 && index < strings.count()) for (int i = 0; i < roles.count(); ++i) if (roles.at(i) == Qt::DisplayRole) - hash.insert(Qt::DisplayRole, strings.at(index)); + hash.insert(Qt::DisplayRole, strings.at(index) + QString::number(index)); return hash; } |