From d35e9791fc6cf02c6d34312fb5ea88ffb3040797 Mon Sep 17 00:00:00 2001 From: khamidou Date: Wed, 27 Jul 2011 19:57:24 +0200 Subject: [PATCH] fixed the test.xml file --- tasklist.cpp | 2 +- tests/first.xml | 14 +++++++++++++- tests/first.xml~ | 13 ------------- 3 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 tests/first.xml~ diff --git a/tasklist.cpp b/tasklist.cpp index 7285569..74c3b89 100644 --- a/tasklist.cpp +++ b/tasklist.cpp @@ -86,5 +86,5 @@ QVariant TaskList::data ( const QModelIndex & index, int role) const int TaskList::rowCount (const QModelIndex & parent) const { - return 2; + return _taskList.length(); } diff --git a/tests/first.xml b/tests/first.xml index 5b1f0ee..c8901d0 100644 --- a/tests/first.xml +++ b/tests/first.xml @@ -21,5 +21,17 @@ 3 5 - + + + Song practice + + 3 + 5 + + + 3 + 5 + + + diff --git a/tests/first.xml~ b/tests/first.xml~ deleted file mode 100644 index 41b4c8b..0000000 --- a/tests/first.xml~ +++ /dev/null @@ -1,13 +0,0 @@ - - - Task 1 - - 3 - 5 - - - 3 - 5 - - - -- 2.43.0