fix table view

This commit is contained in:
liranbg 2014-10-24 03:20:16 +03:00
parent 73951fe69c
commit 174c5ca19f
2 changed files with 9 additions and 4 deletions

View file

@ -23,7 +23,9 @@ public:
~CalendarManager() ~CalendarManager()
{ {
delete caliSchedPtr; delete caliSchedPtr;
delete examSchePtr;
delete caliDialog; delete caliDialog;
delete examDialogPtr;
} }
void exportCalendarCSV(); void exportCalendarCSV();
void setCalendar(QString html); void setCalendar(QString html);

View file

@ -47,8 +47,8 @@ void calendarSchedule::clearTableItems()
for (j = 0; j < columnCount(); j++) for (j = 0; j < columnCount(); j++)
if (this->takeItem(i,j) != NULL) if (this->takeItem(i,j) != NULL)
delete this->takeItem(i,j); delete this->takeItem(i,j);
horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); // horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); // verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
} }
void calendarSchedule::insertCourseIntoTable() void calendarSchedule::insertCourseIntoTable()
@ -94,8 +94,11 @@ void calendarSchedule::insertCourseIntoTable()
verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
} }
horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); // horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
verticalHeader()->setSectionResizeMode(QHeaderView::Interactive); // verticalHeader()->setSectionResizeMode(QHeaderView::Interactive);
horizontalHeader()->stretchLastSection();
verticalHeader()->stretchLastSection();
} }