11 |
11 |
12 import os |
12 import os |
13 |
13 |
14 from PyQt4.QtCore import pyqtSlot, Qt |
14 from PyQt4.QtCore import pyqtSlot, Qt |
15 from PyQt4.QtGui import QDialog, QDialogButtonBox, QMenu, QHeaderView, \ |
15 from PyQt4.QtGui import QDialog, QDialogButtonBox, QMenu, QHeaderView, \ |
16 QTreeWidgetItem, QApplication, QProgressDialog |
16 QTreeWidgetItem, QApplication |
17 |
17 |
18 from E5Gui import E5MessageBox |
18 from E5Gui import E5MessageBox |
19 from E5Gui.E5Application import e5App |
19 from E5Gui.E5Application import e5App |
|
20 from E5Gui.E5ProgressDialog import E5ProgressDialog |
20 |
21 |
21 from .Ui_PyCoverageDialog import Ui_PyCoverageDialog |
22 from .Ui_PyCoverageDialog import Ui_PyCoverageDialog |
22 |
23 |
23 import Utilities |
24 import Utilities |
24 from DebugClients.Python3.coverage import coverage |
25 from DebugClients.Python3.coverage import coverage |
341 cover.use_cache(True) |
342 cover.use_cache(True) |
342 cover.exclude(self.excludeList[0]) |
343 cover.exclude(self.excludeList[0]) |
343 cover.load() |
344 cover.load() |
344 |
345 |
345 # now process them |
346 # now process them |
346 progress = QProgressDialog(self.trUtf8("Annotating files..."), |
347 progress = E5ProgressDialog( |
347 self.trUtf8("Abort"), 0, len(files), self) |
348 self.trUtf8("Annotating files..."), self.trUtf8("Abort"), |
|
349 0, len(files), self.trUtf8("%v/%m Files"), self) |
348 progress.setMinimumDuration(0) |
350 progress.setMinimumDuration(0) |
349 count = 0 |
351 count = 0 |
350 |
352 |
351 for file in files: |
353 for file in files: |
352 progress.setValue(count) |
354 progress.setValue(count) |