342 |
342 |
343 if itm.data(0, self.warningRole): |
343 if itm.data(0, self.warningRole): |
344 editor.toggleFlakesWarning(lineno, True, error) |
344 editor.toggleFlakesWarning(lineno, True, error) |
345 else: |
345 else: |
346 editor.toggleSyntaxError(lineno, index, True, error, show=True) |
346 editor.toggleSyntaxError(lineno, index, True, error, show=True) |
|
347 else: |
|
348 fn = Utilities.normabspath(itm.data(0, self.filenameRole)) |
|
349 vm = e5App().getObject("ViewManager") |
|
350 vm.openSourceFile(fn) |
|
351 editor = vm.getOpenEditor(fn) |
|
352 for index in range(itm.childCount()): |
|
353 citm = itm.child(index) |
|
354 lineno = citm.data(0, self.lineRole) |
|
355 index = citm.data(0, self.indexRole) |
|
356 error = citm.data(0, self.errorRole) |
|
357 if citm.data(0, self.warningRole): |
|
358 editor.toggleFlakesWarning(lineno, True, error) |
|
359 else: |
|
360 editor.toggleSyntaxError(lineno, index, True, error, show=True) |
347 |
361 |
348 @pyqtSlot() |
362 @pyqtSlot() |
349 def on_showButton_clicked(self): |
363 def on_showButton_clicked(self): |
350 """ |
364 """ |
351 Private slot to handle the "Show" button press. |
365 Private slot to handle the "Show" button press. |