jce-manager/main/CalendarTab/CalendarManager.cpp
Liran BN 95ccaa39d0 Add calendar option
bug fixes, better phrasing, calendar option
2014-08-31 12:33:27 +03:00

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);
}