418 Private slot to generate a LCOV report of the shown data. |
418 Private slot to generate a LCOV report of the shown data. |
419 """ |
419 """ |
420 from EricWidgets import EricPathPickerDialog |
420 from EricWidgets import EricPathPickerDialog |
421 from EricWidgets.EricPathPicker import EricPathPickerModes |
421 from EricWidgets.EricPathPicker import EricPathPickerModes |
422 |
422 |
423 filename, ok = EricPathPickerDialog.getPath( |
423 filename, ok = EricPathPickerDialog.getStrPath( |
424 self, |
424 self, |
425 self.tr("LCOV Report"), |
425 self.tr("LCOV Report"), |
426 self.tr("Enter the path of the output file:"), |
426 self.tr("Enter the path of the output file:"), |
427 mode=EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE, |
427 mode=EricPathPickerModes.SAVE_FILE_ENSURE_EXTENSION_MODE, |
428 path=os.path.join(os.path.dirname(self.cfn), "coverage.lcov"), |
428 strPath=os.path.join(os.path.dirname(self.cfn), "coverage.lcov"), |
429 defaultDirectory=os.path.dirname(self.cfn), |
429 defaultDirectory=os.path.dirname(self.cfn), |
430 filters=self.tr("LCOV Files (*.lcov);;All Files (*)"), |
430 filters=self.tr("LCOV Files (*.lcov);;All Files (*)"), |
431 ) |
431 ) |
432 if ok: |
432 if ok: |
433 cover, files = self.__prepareReportGeneration() |
433 cover, files = self.__prepareReportGeneration() |