59 header = self.exceptionsTable.horizontalHeader()\ |
59 header = self.exceptionsTable.horizontalHeader()\ |
60 .sectionSizeHint(section) |
60 .sectionSizeHint(section) |
61 if section == 0: |
61 if section == 0: |
62 header = fm.width("averagebiglonghost.averagedomain.info") |
62 header = fm.width("averagebiglonghost.averagedomain.info") |
63 elif section == 1: |
63 elif section == 1: |
64 header = fm.width(self.trUtf8("Allow For Session")) |
64 header = fm.width(self.tr("Allow For Session")) |
65 buffer = fm.width("mm") |
65 buffer = fm.width("mm") |
66 header += buffer |
66 header += buffer |
67 self.exceptionsTable.horizontalHeader()\ |
67 self.exceptionsTable.horizontalHeader()\ |
68 .resizeSection(section, header) |
68 .resizeSection(section, header) |
69 |
69 |