fix table view
This commit is contained in:
parent
73951fe69c
commit
174c5ca19f
2 changed files with 9 additions and 4 deletions
|
@ -23,7 +23,9 @@ public:
|
|||
~CalendarManager()
|
||||
{
|
||||
delete caliSchedPtr;
|
||||
delete examSchePtr;
|
||||
delete caliDialog;
|
||||
delete examDialogPtr;
|
||||
}
|
||||
void exportCalendarCSV();
|
||||
void setCalendar(QString html);
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue