159 else: |
161 else: |
160 files = [fn] |
162 files = [fn] |
161 |
163 |
162 if codestring or len(files) > 0: |
164 if codestring or len(files) > 0: |
163 self.checkProgress.setMaximum(max(1, len(files))) |
165 self.checkProgress.setMaximum(max(1, len(files))) |
|
166 self.checkProgress.setVisible(len(files) > 1) |
|
167 self.checkProgressLabel.setVisible(len(files) > 1) |
164 QApplication.processEvents() |
168 QApplication.processEvents() |
165 |
169 |
166 # now go through all the files |
170 # now go through all the files |
167 progress = 0 |
171 progress = 0 |
168 for file in files: |
172 for file in files: |
169 self.checkProgress.setValue(progress) |
173 self.checkProgress.setValue(progress) |
|
174 self.checkProgressLabel.setPath(file) |
170 QApplication.processEvents() |
175 QApplication.processEvents() |
171 self.__resort() |
176 self.__resort() |
172 |
177 |
173 if self.cancelled: |
178 if self.cancelled: |
174 return |
179 return |
218 warning[1], warning[2], 0, |
223 warning[1], warning[2], 0, |
219 warning[3], scr_line, True) |
224 warning[3], scr_line, True) |
220 |
225 |
221 progress += 1 |
226 progress += 1 |
222 self.checkProgress.setValue(progress) |
227 self.checkProgress.setValue(progress) |
|
228 self.checkProgressLabel.setPath("") |
223 QApplication.processEvents() |
229 QApplication.processEvents() |
224 self.__resort() |
230 self.__resort() |
225 else: |
231 else: |
226 self.checkProgress.setMaximum(1) |
232 self.checkProgress.setMaximum(1) |
227 self.checkProgress.setValue(1) |
233 self.checkProgress.setValue(1) |
246 self.showButton.setEnabled(True) |
252 self.showButton.setEnabled(True) |
247 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) |
253 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) |
248 self.resultList.header().setStretchLastSection(True) |
254 self.resultList.header().setStretchLastSection(True) |
249 |
255 |
250 self.checkProgress.setVisible(False) |
256 self.checkProgress.setVisible(False) |
|
257 self.checkProgressLabel.setVisible(False) |
251 |
258 |
252 def on_buttonBox_clicked(self, button): |
259 def on_buttonBox_clicked(self, button): |
253 """ |
260 """ |
254 Private slot called by a button of the button box clicked. |
261 Private slot called by a button of the button box clicked. |
255 |
262 |