diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 01:36:30 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 01:36:30 (GMT) |
commit | 1f4d824286329887a65c777b59ae0289152c52a3 (patch) | |
tree | 76b907a8ef468f051df0f1f63b9fc6df23b7c3b6 | |
parent | 959ab5d84d67ec84c2342b083e362ca75613e8cb (diff) | |
download | Qt-1f4d824286329887a65c777b59ae0289152c52a3.zip Qt-1f4d824286329887a65c777b59ae0289152c52a3.tar.gz Qt-1f4d824286329887a65c777b59ae0289152c52a3.tar.bz2 |
Compile after change b9d7f819b7bf9f7c39735377ae2e3e4d4afa1cf7
-rw-r--r-- | tests/auto/declarative/pathview/tst_pathview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/declarative/pathview/tst_pathview.cpp b/tests/auto/declarative/pathview/tst_pathview.cpp index 57ae8c0..360228b 100644 --- a/tests/auto/declarative/pathview/tst_pathview.cpp +++ b/tests/auto/declarative/pathview/tst_pathview.cpp @@ -111,6 +111,14 @@ public: return returnHash; } + QVariant data(int index, int role) const { + if (role == 0) + return list.at(index).first; + if (role == 1) + return list.at(index).second; + return QVariant(); + } + void addItem(const QString &name, const QString &number) { list.append(QPair<QString,QString>(name, number)); emit itemsInserted(list.count()-1, 1); |