This commit is contained in:
liranbg 2014-09-21 13:31:44 +03:00
commit ce4947fe5a

View file

@ -50,7 +50,9 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
return false; return false;
} }
QTextStream out(&file); QTextStream out(&file); //The output streem.
out.setCodec("UTF-8"); //Unicode 8
out << CSV_CALENDAR_HEADER << "\n"; // macro in header file out << CSV_CALENDAR_HEADER << "\n"; // macro in header file
for (calendarCourse *coursePtr: *(calSched->getCourses())) //main loop - running though all courses for (calendarCourse *coursePtr: *(calSched->getCourses())) //main loop - running though all courses
@ -66,7 +68,7 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
QString name = coursePtr->getName(); QString name = coursePtr->getName();
QString room = coursePtr->getRoom(); QString room = coursePtr->getRoom();
QDate currentDate = cal->getStartDate(); // currentDate will iterate thou the semester QDate currentDate = cal->getStartDate(); // currentDate will iterate throuh the semester
currentDate = currentDate.addDays(day-1); //selecting the REAL starting day of that course currentDate = currentDate.addDays(day-1); //selecting the REAL starting day of that course