]> khamidou — GitHub mirrors - st.git/commitdiff
fixed the test.xml file
authorkhamidou <khamidou@gmail.com>
Wed, 27 Jul 2011 17:57:24 +0000 (19:57 +0200)
committerkhamidou <khamidou@gmail.com>
Wed, 27 Jul 2011 17:57:24 +0000 (19:57 +0200)
tasklist.cpp
tests/first.xml
tests/first.xml~ [deleted file]

index 72855697c5b20dcfb72948e4d836f70ea6e69937..74c3b89e1031a75ccdbea9039a493cd0829bbc7b 100644 (file)
@@ -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();
 }
index 5b1f0ee4a90e3200147099e56414056eb8851847..c8901d0735581261acd912a38d3c09408b0683b9 100644 (file)
            <hours>3</hours>
            <minutes>5</minutes>
        </elapsed>
-       </task>
+     </task>
+     <task>
+       <title>Song practice</title>
+       <length>
+           <hours>3</hours>
+           <minutes>5</minutes>
+       </length>
+       <elapsed>
+           <hours>3</hours>
+           <minutes>5</minutes>
+       </elapsed>
+     </task>
+
 </session>
diff --git a/tests/first.xml~ b/tests/first.xml~
deleted file mode 100644 (file)
index 41b4c8b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-               <session>
-                   <task>
-                       <title>Task 1</title>
-                       <length>
-                           <hours>3</hours>
-                           <minutes>5</minutes>
-                       </length>
-                       <elasped>
-                           <hours>3</hours>
-                           <minutes>5</minutes>
-                       </elapsed>
-                   </task>
-                   <task>