From 1f4d824286329887a65c777b59ae0289152c52a3 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Mon, 11 Jan 2010 11:36:30 +1000 Subject: Compile after change b9d7f819b7bf9f7c39735377ae2e3e4d4afa1cf7 --- tests/auto/declarative/pathview/tst_pathview.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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(name, number)); emit itemsInserted(list.count()-1, 1); -- cgit v0.12