Merge branch 'master' of https://github.com/liranbg/JceManager
This commit is contained in:
commit
ce4947fe5a
1 changed files with 4 additions and 2 deletions
|
@ -50,7 +50,9 @@ bool CSV_Exporter::exportCalendar(calendarSchedule *calSched, CalendarDialog *ca
|
|||
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
|
||||
|
||||
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 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue