-rw-r--r-- | korganizer/calendarview.cpp | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 7566b22..d51187a 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -909,18 +909,20 @@ void CalendarView::checkAlarms() Todo * root1 = new Todo; mCalendar->addTodo( root1 ); - root1->setSummary( "Project_1"); + root1->setSummary( "Project1"); root1->setPriority( 1 ); + root1->setCategories( QString( "Cat_Pro1") ); root1->setDescription( "This is a test description of a root Project" ); root1->setPercentComplete( 20 ); updateView(); QDateTime start = QDateTime ( QDate( 2004,11,1), QTime ( 7,30,0) ); - QDateTime end = QDateTime ( QDate( 2005,8,1), QTime ( 0,0,0) ); + QDateTime end = QDateTime ( QDate( 2005,8,5), QTime ( 0,0,0) ); nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_1"); + nt->setSummary( "Planning Project1"); nt->setPriority( 1 ); - nt->setDescription( "This is a test description of Planning_Project_1" ); + nt->setDescription( "This is a test description of Planning Project1" ); nt->setPercentComplete( 20 ); + nt->setCategories( QString( "Cat_Pro1,Cat_Plan_Pro1") ); @@ -930,8 +932,9 @@ void CalendarView::checkAlarms() nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_1: Lutz"); + nt->setSummary( "Planning Project1: Lutz"); nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); nt->setPercentComplete( 20 ); + nt->setCategories( QString( "Cat_Pro1,Cat_Plan_Pro1,Cat_Work_Lutz") ); Todo * workLutz11 = nt; workLutz11->setRelatedTo( sub1 ); @@ -939,8 +942,9 @@ void CalendarView::checkAlarms() nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_1: Norbert"); + nt->setSummary( "Planning Project1: Norbert"); nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); nt->setPercentComplete( 20 ); + nt->setCategories( QString( "Cat_Pro1,Cat_Plan_Pro1,Cat_Work_Norbert") ); Todo * workNorbert11 = nt; workNorbert11->setRelatedTo( sub1 ); @@ -951,4 +955,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This is a test description of Work Project_1" ); + nt->setCategories( QString( "Cat_Pro1,Cat_Work_Pro1") ); nt->setPercentComplete( 20 ); @@ -962,4 +967,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro1,Cat_Work_Pro1,Cat_Work_Lutz") ); nt->setPercentComplete( 20 ); Todo * workLutz12 = nt; @@ -971,4 +977,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro1,Cat_Work_Pro1,Cat_Work_Norbert") ); nt->setPercentComplete( 20 ); Todo * workNorbert12 = nt; @@ -992,11 +999,12 @@ void CalendarView::checkAlarms() Todo * root1 = new Todo; mCalendar->addTodo( root1 ); - root1->setSummary( "Project_2"); + root1->setSummary( "Project2"); root1->setPriority( 1 ); root1->setDescription( "This is a test description of a root Project 2" ); root1->setPercentComplete( 20 ); + root1->setCategories( QString( "Cat_Pro2") ); updateView(); QDateTime start = QDateTime ( QDate( 2004,11,1), QTime ( 7,30,0) ); - QDateTime end = QDateTime ( QDate( 2005,8,1), QTime ( 0,0,0) ); + QDateTime end = QDateTime ( QDate( 2005,8,5), QTime ( 0,0,0) ); int secLenRunning = 7200; int secLenPausing = 3600 * 3; @@ -1005,7 +1013,8 @@ void CalendarView::checkAlarms() nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_2"); + nt->setSummary( "Planning Project2"); nt->setPriority( 1 ); nt->setDescription( "This is a test description of Planning_Project_2" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Plan_Pro2") ); nt->setPercentComplete( 20 ); @@ -1016,7 +1025,8 @@ void CalendarView::checkAlarms() nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_2: Lutz"); + nt->setSummary( "Planning Project2: Lutz"); nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Plan_Pro2,Cat_Work_Lutz") ); nt->setPercentComplete( 20 ); Todo * workLutz11 = nt; @@ -1025,7 +1035,8 @@ void CalendarView::checkAlarms() nt = new Todo; mCalendar->addTodo( nt ); - nt->setSummary( "Planning_Project_2: Norbert"); + nt->setSummary( "Planning Project2: Norbert"); nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Plan_Pro2,Cat_Work_Norbert") ); nt->setPercentComplete( 20 ); Todo * workNorbert11 = nt; @@ -1037,4 +1048,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This is a test description of Work Project_2" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Work_Pro2") ); nt->setPercentComplete( 20 ); @@ -1048,4 +1060,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Work_Pro2,Cat_Work_Lutz") ); nt->setPercentComplete( 20 ); Todo * workLutz12 = nt; @@ -1057,4 +1070,5 @@ void CalendarView::checkAlarms() nt->setPriority( 1 ); nt->setDescription( "This todo counts the actual work of a person on a project" ); + nt->setCategories( QString( "Cat_Pro2,Cat_Work_Pro2,Cat_Work_Norbert") ); nt->setPercentComplete( 20 ); Todo * workNorbert12 = nt; |