summaryrefslogtreecommitdiffstats
path: root/examples/listModel/model.cpp
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-07-28 20:06:24 +1000
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-07-28 20:06:24 +1000
commitcaaa72870f9b85d816305c2cd405686eac8a050d (patch)
treea650347672f161d396ec8b018e8702c564465700 /examples/listModel/model.cpp
parent68b2811e8ef13e423771167433b63e8fbd56ea8e (diff)
Update the examples to the new QGraphicsListView changes.
Diffstat (limited to 'examples/listModel/model.cpp')
-rw-r--r--examples/listModel/model.cpp2
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;
}