95ccaa39d0
bug fixes, better phrasing, calendar option
17 lines
370 B
C++
17 lines
370 B
C++
#include "CalendarManager.h"
|
|
|
|
CalendarManager::CalendarManager(QPlainTextEdit *ptr)
|
|
{
|
|
this->ptr = ptr;
|
|
}
|
|
|
|
void CalendarManager::setCalendar(std::string html)
|
|
{
|
|
cali = new CalendarPage(html);
|
|
QString text;
|
|
for (calendarCourse *a: *cali->getCourses())
|
|
{
|
|
text += QString::fromStdString(a->courseToString());
|
|
}
|
|
ptr->setPlainText(text);
|
|
}
|