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()
{
delete caliSchedPtr;
delete examSchePtr;
delete caliDialog;
delete examDialogPtr;
}
void exportCalendarCSV();
void setCalendar(QString html);

View file

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