111 """ |
111 """ |
112 itm = QTreeWidgetItem(self.resultList, [ |
112 itm = QTreeWidgetItem(self.resultList, [ |
113 file, |
113 file, |
114 str(statements), |
114 str(statements), |
115 str(executed), |
115 str(executed), |
116 "{0:d}%".format(coverage), |
116 "{0:.0f}%".format(coverage), |
117 excluded, |
117 excluded, |
118 missing |
118 missing |
119 ]) |
119 ]) |
120 for col in range(1, 4): |
120 for col in range(1, 4): |
121 itm.setTextAlignment(col, Qt.AlignRight) |
121 itm.setTextAlignment(col, Qt.AlignRight) |
202 else: |
202 else: |
203 pc = 100.0 |
203 pc = 100.0 |
204 itm = QTreeWidgetItem(self.summaryList, [ |
204 itm = QTreeWidgetItem(self.summaryList, [ |
205 str(total_statements), |
205 str(total_statements), |
206 str(total_executed), |
206 str(total_executed), |
207 "{0:d}%".format(pc) |
207 "{0:.0f}%".format(pc) |
208 ]) |
208 ]) |
209 for col in range(0, 3): |
209 for col in range(0, 3): |
210 itm.setTextAlignment(col, Qt.AlignRight) |
210 itm.setTextAlignment(col, Qt.AlignRight) |
211 |
211 |
212 self.__finish() |
212 self.__finish() |